NumPy - Broadcasting
You have a dataset with shape (100, 1) representing 100 samples and a feature vector of shape (5,). You want to add the feature vector to each sample. Which broadcasting operation correctly achieves this?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions