Skip to content

Commit 76fcece

Browse files
committed
Jared2
1 parent aee8895 commit 76fcece

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

test/test_roc.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def wordcloudviz(column):
169169
plt.tight_layout(pad=0)
170170
plt.show()
171171
>>>>>>> 0f8d8abe7a26aac02e768b21b22a1d2e58bd6d30
172-
172+
173173
def plot_cumulative_variance_ratio(pca, n_features):
174174

175175
'''

0 commit comments

Comments
 (0)