Issue
trying to do the following import:
from sklearn.metrics.regression import mean_absolute_error, mean_squared_error, r2_score
and I get the error:
ModuleNotFoundError: No module named 'sklearn.metrics.regression'
tried fixing with the installation of:
pip install -U scikit-learn scipy matplotlib
but I don't think that's what I'm missing since it didn't work...
Solution
You're probably looking to import them from sklearn.metrics
, not sklearn.metrics.regression
Answered By - DaSim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.