loyala
loyala

Reputation: 175

Using Sklearn Log loss and accuracy_score

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

Answers (1)

Punker
Punker

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

Related Questions