Machine Learning, Artificial Intelligence, Python, Statistics, Mathematics.
the dataset it has never seen before: overfitting_error=0 for i in range(len(pred)): overfitting_error=overfitting_error+(pred[i]-T_test[i])**2 print(‘MSE on test set, for degree=19 is the following: MSE=%.2f’%(overfitting_error[0]/len(pred))) As we can see, the error we make using this model is