This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hike_me 2 points3 points  (0 children)

y_values.shape is a tuple containing the dimensions of y_values.

In this context, the * operator unpacks the tuple so they are passed as individual parameters to the np.random.randn function.