Question: What is the shape of the following numPy array? np . random.seed ( 1 9 5 5 ) x = np . random.randn ( 2

What is the shape of the following numPy array?
np.random.seed(1955)
x = np.random.randn(2,2,2,2)
print(x.shape)
x
#Hint: I have not loaded the necessary package here...but you should
Group of answer choices
(2,2,2,2)
array(4,4,4,4)
array([[[[-0.3077721,0.60127275],
[0.37351551,-1.66625832]],
[[-0.67932425,0.16827459],
[0.5285291,1.98193067]]],
[[[0.50847906,-0.97761802],
[0.16285869,-0.22122161]],
[[-0.72708872,1.1979344],
[0.57646273,0.44571315]]]])
print(shape='2x2')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!