Machine Learning, Artificial Intelligence, Python, Statistics, Mathematics.
range(len(ALPHA)): NEW_MSE.append(np.array(MSE_test[i]).flatten().tolist()) NEW_MSE=np.array(NEW_MSE).flatten().tolist() ridge_results=pd.DataFrame() ridge_results["Alpha"]=NEW_ALPHA ridge_results['D']=DEG.tolist()*5 ridge_results['MSE']=NEW_MSE ridge_results.sort_values(by='MSE').head(1) The