From f631b4af32b8c45c4c4a7e59b0c99e8d02742f59 Mon Sep 17 00:00:00 2001 From: mdavid Date: Mon, 14 Mar 2022 15:39:37 +0100 Subject: [PATCH] y and y_hat 1D arrays -> y and y_hat 2D arrays --- module08/en.subject.tex | 8 ++++---- version | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module08/en.subject.tex b/module08/en.subject.tex index 7e1b4e3a..424a2677 100644 --- a/module08/en.subject.tex +++ b/module08/en.subject.tex @@ -1271,8 +1271,8 @@ \section*{Examples} import numpy as np from sklearn.metrics import confusion_matrix -y_hat = np.array(['norminet', 'dog', 'norminet', 'norminet', 'dog', 'bird']) -y = np.array(['dog', 'dog', 'norminet', 'norminet', 'dog', 'norminet']) +y_hat = np.array([['norminet'], ['dog'], ['norminet'], ['norminet'], ['dog'], ['bird']]) +y = np.array([['dog'], ['dog'], ['norminet'], ['norminet'], ['dog'], ['norminet']]) # Example 1: ## your implementation @@ -1331,8 +1331,8 @@ \subsection{Instructions:} \section{Examples:} \begin{minted}[bgcolor=darcula-back,formatcom=\color{lightgrey},fontsize=\scriptsize]{python} import numpy as np -y_hat = np.array(['norminet', 'dog', 'norminet', 'norminet', 'dog', 'bird']) -y_true = np.array(['dog', 'dog', 'norminet', 'norminet', 'dog', 'norminet']) +y_hat = np.array([['norminet'], ['dog'], ['norminet'], ['norminet'], ['dog'], ['bird']]) +y_true = np.array([['dog'], ['dog'], ['norminet'], ['norminet'], ['dog'], ['norminet']]) # Example 1: confusion_matrix_(y_true, y_hat, df_option=True) diff --git a/version b/version index f05f17cf..e5d4cf33 100644 --- a/version +++ b/version @@ -1 +1 @@ -v4.0.4 +v4.0.5