[scikit-learn] Regarding negative value of sklearn.metrics.r2_score and sklearn.metrics.explained_variance_score

Samir K Mahajan samirkmahajan1972 at gmail.com
Wed Aug 11 15:16:34 EDT 2021


Dear All,
I am amazed to find  negative  values of  sklearn.metrics.r2_score and
sklearn.metrics.explained_variance_score in a model ( cross validation of
OLS regression model)
However, what amuses me more  is seeing you justifying   negative
'sklearn.metrics.r2_score ' in your documentation.  This does not
make sense to me . Please justify to me how squared values are negative.

Regards,
Samir K Mahajan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scikit-learn/attachments/20210812/c49975d5/attachment.html>


More information about the scikit-learn mailing list