easy5 pts · first answer countsnumpybroadcasting
Broadcasting a column and a row
What does this code print?
import numpy as np a = np.ones((3, 1)) b = np.ones((1, 4)) print((a + b).shape)
Discussion 0
Join free to post in the discussion.
Related questions
- ReLU applied to a vectorMachine Learning Engineer
- Shape after summing along axis 0Data Scientist
- Labelling orders as high or lowData Scientist
- Values from np.linspaceData Scientist
- Reshaping with -1Data Scientist
- Share of orders above a thresholdData Scientist
- dtype of an array with NaNData Scientist
- Index of the largest valueData Scientist