-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
numpy subject, Exercise 6: why Broadcasting? #2284
Comments
Hi @jarmo-seljamaa, thank you for your feedback. I will update the subject (and audit) to make this more relevant to the topic of |
Thanks for this. Please wait with the updates for a couple of days. We're in the middle of the piscine and it would be terribly confusing if the tasks change while we're doing them. |
I'm sorry, I looked at your suggested fix, but adding |
For the first part of the exercise (the creation of the matrix) yes, you can use a simple |
OK, looking at the new example of a possible solution, I'm not sure if it is a good learning example of broadcasting. The previous slicing example was better, imho. But maybe that's just me. |
Thank you for the feedback! I updated the new version to have an extra question to use |
Well, we actually might need sooner merges, because there are too many mistakes, ambiguities etc as you can see from the other tickets I've opened (and we're only on day 2!). Or at least replies to these tickets to clarify the errors would be appreciated! |
numpy
Exercise 6 is titled "Broadcasting and Slicing" and also there is a note at the end of the exercise referring to a handbook section about broadcasting. While it is a very interesting read, there is little use of that in the exercise.
The task clearly instructs to use slicing only:
I imagine the initial array could be created using broadcasting, but it is far more convenient to initialise the array with regular NumPy array creation routines.
The text was updated successfully, but these errors were encountered: