Hello all, I tried to used r2_score to calculate the coefficient of determination for a multiple regression problem and find that it is producing negative values. Specifically I'm using the r2_score function with the permutation_test_score function, and a large majority of the r2 values from the permutations are negative. The code I'm running is straight forward and looks like this:
scoreR2, permutation_scoresR2, pvalueR2 = permutation_test_score(enet, X, y, r2_score, cv=kf, n_permutations=1000, n_jobs=-1) This is my first time running into a problem with scikit, and so it's my first time posting a problem. My apologies if this is not the preferred method. -Steve ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general