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