42-AI / bootcamp_machine-learning

Bootcamp to learn basics in Machine Learning
Other
205 stars 41 forks source link

ML03ex09: Examples are not vertical vectors #160

Closed PlumeRoberts closed 2 years ago

PlumeRoberts commented 2 years ago

The y and y_hat vectors are 1d array instead of the typical column vector

Examples If applicable, add examples to help explain your problem.

y_hat = np.array(['norminet', 'dog', 'norminet', 'norminet', 'dog', 'bird'])
y = np.array(['dog', 'dog', 'norminet', 'norminet', 'dog', 'norminet'])

Screenshots image

Fixed on: