Machine Learning, Artificial Intelligence, Python, Statistics, Mathematics.
MSE.append(error/len(pred)) print ('For degree=19, MSE=%.4f'%(MSE[len(MSE)-1])) It looks way better! Actually, the error seems to decrease as we increase the degree of the polynomial features: But as the saying goes, all that glitter is not gold. We used the same dataset to train our model, and to