Skip to content

Commit

Permalink
Merge branch 'conda-update' of github.com:rebeccabilbro/yellowbrick i…
Browse files Browse the repository at this point in the history
…nto conda-update
  • Loading branch information
rebeccabilbro committed Jun 14, 2020
2 parents da2ce9b + 21a785f commit 62c1dcd
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/requirements.txt
Expand Up @@ -15,6 +15,6 @@ coverage>=4.5.2
# Optional Testing Dependencies
nltk>=3.2
# spacy>=2.0.18
pandas>=0.20,<1
pandas>=1.0.4
umap-learn==0.3.9 # reminder to bump periodically!

2 changes: 1 addition & 1 deletion tests/test_classifier/test_threshold.py
Expand Up @@ -29,7 +29,7 @@

from unittest.mock import patch
from tests.base import VisualTestCase
from numpy.testing.utils import assert_array_equal
from numpy.testing import assert_array_equal

from sklearn.base import ClassifierMixin
from sklearn.svm import LinearSVC, NuSVC
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster/test_elbow.py
Expand Up @@ -23,7 +23,7 @@
import matplotlib.pyplot as plt

from scipy.sparse import csc_matrix, csr_matrix
from numpy.testing.utils import assert_array_almost_equal
from numpy.testing import assert_array_almost_equal

from sklearn.datasets import make_blobs
from sklearn.cluster import KMeans, MiniBatchKMeans
Expand Down
2 changes: 1 addition & 1 deletion tests/test_regressor/test_alphas.py
Expand Up @@ -22,7 +22,7 @@
import numpy as np

from tests.base import VisualTestCase
from numpy.testing.utils import assert_array_equal
from numpy.testing import assert_array_equal

from yellowbrick.datasets import load_energy
from yellowbrick.exceptions import YellowbrickTypeError
Expand Down
2 changes: 1 addition & 1 deletion yellowbrick/classifier/class_prediction_error.py
Expand Up @@ -21,7 +21,7 @@
import numpy as np

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

from yellowbrick.draw import bar_stack
from yellowbrick.classifier.base import ClassificationScoreVisualizer
Expand Down
3 changes: 1 addition & 2 deletions yellowbrick/classifier/rocauc.py
Expand Up @@ -21,7 +21,6 @@

import numpy as np

from scipy import interp
from sklearn.metrics import auc, roc_curve
from sklearn.preprocessing import label_binarize
from sklearn.utils.multiclass import type_of_target
Expand Down Expand Up @@ -497,7 +496,7 @@ def _score_macro_average(self, n_classes):

# Compute the averages per class
for i in range(n_classes):
avg_tpr += interp(all_fpr, self.fpr[i], self.tpr[i])
avg_tpr += np.interp(all_fpr, self.fpr[i], self.tpr[i])

# Finalize the average
avg_tpr /= n_classes
Expand Down
3 changes: 2 additions & 1 deletion yellowbrick/regressor/influence.py
Expand Up @@ -180,7 +180,8 @@ def draw(self):
"""
# Draw a stem plot with the influence for each instance
_, _, baseline = self.ax.stem(
self.distance_, linefmt=self.linefmt, markerfmt=self.markerfmt
self.distance_, linefmt=self.linefmt, markerfmt=self.markerfmt,
use_line_collection=True
)

# No padding on either side of the instance index
Expand Down

0 comments on commit 62c1dcd

Please sign in to comment.