We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aee8895 commit 76fceceCopy full SHA for 76fcece
2 files changed
test/test_roc.py
@@ -0,0 +1,13 @@
1
+import numpy as np
2
+import pytest
3
+from toolkit.plot import plot_roc_curve
4
+
5
+@pytest.fixture()
6
+def binary_classification_data():
7
+ y_true = np.random.randint(low=0, high=2, size=100)
8
+ y_pred = np.random.rand(100)
9
+ return y_true, y_pred
10
11
+def test_plot_roc_curve(binary_classification_data):
12
+ y_true, y_pred = binary_classification_data
13
+ plot_roc_curve(y_true, y_pred)
toolkit/plot.py
@@ -169,7 +169,7 @@ def wordcloudviz(column):
169
plt.tight_layout(pad=0)
170
plt.show()
171
>>>>>>> 0f8d8abe7a26aac02e768b21b22a1d2e58bd6d30
172
-
173
def plot_cumulative_variance_ratio(pca, n_features):
174
175
'''
0 commit comments