Easy
Consider vec, an array created like this
vec = numpy.array([[1,2,3,4],[5,6,7,8]])
What is the result of
vec2 = vec.reshape(2,2,2)
?
Author: W3D TeamStatus: PublishedQuestion passed 589 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about scikit-learn
7
What is the value of the decision threshold used with logistic regression in Scikit-learn?3
The choice of the centers of the initial clusters has no impact on the final result of the K-Means algorithm.2
How to create an MLP in Scikit-learn2
The Pandas library does not allow grouping of data as we can do with the Group By clause of the SQL language.2
Print the data type of a numpy array