Question: Generate data samples: generate 10 pair of data samples that satisfying Y=2*X + 50 + a small random number e.g. import numpy as np x_data

Generate data samples: generate 10 pair of data samples that satisfying

Y=2*X + 50 + a small random number

e.g.

import numpy as np

x_data = np.array([35., 38., 31., 20., 22., 25., 17., 60., 8., 60.])

y_data = 2*x_data+50+5*np.random.random(10)

X could be within any range, stored as an array (using numpy.array)

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!