Question: it is taking sample from a hypercube, then we are to return minimum values of the function amoung the samples taken how to finish this

it is taking sample from a hypercube, then we are to return minimum values of the function amoung the samples taken

how to finish this code:

func1 = lambda w: w[0]**2 + w[1]**2 + 3

def minimum(X):

minimums = []

for i in range(1,101):

z = np.random.uniform(-1,1,(X,i))

#fill in code below here

return np.array(minimums)

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!