Reputation: 175
I am trying to import the following library and have scikit-learn installed into my system:
from sklearn.metrics.classification import accuracy_score, log_loss
Can someone please tell what the issue is. I am seeing the following error:
No module named 'sklearn.metrics.classification
Upvotes: 0
Views: 422
Reputation: 1878
Latest versions of scikit-learn
requires you to import this metrics directly from metrics
:
from sklearn.metrics import accuracy_score, log_loss
Upvotes: 1