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 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
Get step-by-step solutions from verified subject matter experts
