Skip to content

Commit

Permalink
Handling scikit-learn's public vs. private API (part 1) (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort committed Nov 1, 2020
1 parent 1831c29 commit 749278d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yellowbrick/classifier/class_prediction_error.py
Expand Up @@ -21,12 +21,17 @@
import numpy as np

from sklearn.utils.multiclass import unique_labels
from sklearn.metrics._classification import _check_targets

from yellowbrick.draw import bar_stack
from yellowbrick.classifier.base import ClassificationScoreVisualizer
from yellowbrick.exceptions import ModelError, YellowbrickValueError, NotFitted

try:
# See #1124: this allows compatibility for scikit-learn >= 0.20
from sklearn.metrics._classification import _check_targets
except ImportError:
from sklearn.metrics.classification import _check_targets


##########################################################################
## Class Prediction Error Chart
Expand Down

0 comments on commit 749278d

Please sign in to comment.