Machine Learning, Artificial Intelligence, Python, Statistics, Mathematics.
error_test=error_test+(pred_test[i]-T_test[i])**2 mse_alpha_test.append(error_test/len(pred_test)) MSE_test.append(mse_alpha_test) PRED_TEST.append(pred_alpha_test) import itertools lst =ALPHA NEW_ALPHA=list(itertools.chain.from_iterable(itertools.repeat(x, 20) for x in lst)) NEW_MSE=[] for i in