Machine Learning, Artificial Intelligence, Python, Statistics, Mathematics.
Polynomial regression (degree=3) Now, let’s suppose we choose this set of parameters randomly and let’s choose this set of parameters to get our prediction: A=[] W=['w0','w1','w2','w3'] for i in range(4): w=np.random.randint(-10,10) A.append(w) def pred(q): y=A[0]+A[1]*q+A[2]*q**2+A[3]*q**3