Question: Exercise 5 (5 points) Implement a function that takes two integer arguments n and m and returns a random numpy array of shape (nm) where

 Exercise 5 (5 points) Implement a function that takes two integer

Exercise 5 (5 points) Implement a function that takes two integer arguments n and m and returns a random numpy array of shape (nm) where the entries are sampled from a uniform distribution over [-1,1]. Hint: Take a look at this to see the available probability distributions in numpy. [] import numpy as np def uniform_matrix(n,m): np.random.seed(seed = 1) ########## Your code goes here ############# #*****####*************************************** return matrix Il project_1_tests.test_uniform_matrix(uniform_matrix)

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!