I am using anaconda and running a script on spyder. When I call
import from sklearn.metrics balanced_accuracy_score
I get the error: "cannot import name balanced_accuracy_score "
Why is this particular metric not being imported?
I am using anaconda and running a script on spyder. When I call
import from sklearn.metrics balanced_accuracy_score
I get the error: "cannot import name balanced_accuracy_score "
Why is this particular metric not being imported?
import from
is not valid syntax for Python, the pattern is
import <package>
- for entire package
or
from <package> import <module>
- only specific module in package
you want the latter, try:
from sklearn.metrics import balanced_accuracy_score