Question from the Python Machine Learning test

How to get the size of a numpy array in scikit-learn

Hard

Consider vec, an array created like this:

vec = numpy.array([[1,2,3,4],[5,6,7,8]], dtype='int32')

What will print(vec.size) display ?

Author: W3D TeamStatus: PublishedQuestion passed 480 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!