Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error in 3.1 Feature Normalization part (ex1) #95

Open
toukode13 opened this issue Oct 12, 2021 · 1 comment
Open

Error in 3.1 Feature Normalization part (ex1) #95

toukode13 opened this issue Oct 12, 2021 · 1 comment

Comments

@toukode13
Copy link

Hello,

I've successfully executed all previous part of ex1, and now I'm trying to work on the feature normalization.

At the coding part, I calculated mu and sigma as (2, ) vectors and let X_norm = (X_norm - mu)/sigma with X_norm is a (47,2) matrix (i checked all these with .shape).

When I tried to execute the grading part, it returns this error: ValueError: operands could not be broadcast together with shapes (20,3) (2,)

Does anyone know what this (20,3) is? I'm pretty sure it's not because i executed the last "concatenate" cell because I tried to run the whole ex1 file again and it's still not working.

@toukode13
Copy link
Author

Nvm. It seems the dataset used in the grading function is a different one (or maybe they inserted an extra vector), which is reasonable for the (20,3) matrix.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant