Issue
I'm already using the r2_score function but don't understand how I can get the "adjusted" R^2 score from this. The description at this page doesn't mention it - maybe it's the adjusted score by default?
Solution
Adjusted R2 requires number of independent variables as well. That's why it will not be calculated using such an independent metrics function (as we are not providing, how ypred was calculated).
However you can calculate the adjusted R2 from R2 with a simple formula given here
where n is number of observations in sample and p is number of independent variables in model
Answered By - Aritesh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.