Skip to content

Commit

Permalink
Add small explanation to test for posterity
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkovsky committed Oct 11, 2022
1 parent 2caca85 commit eb6b62e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_metrics_03_evaluate_binary_classification_1D_aray_string(self):
self.assertEqual(result, 1, 'Binary: Could not compute Precision correctly')

def test_metrics_04_evaluate_binary_classification_2D_1D_array(self):
"""Test where y_true is one-hot encoded while y_pred is not."""
# Test y_true is 2D array and y_pred 1D array with num labels
y_true = [[1, 0], [0, 1], [1, 0], [0, 1]]
y_pred = [0, 1, 0, 1]
Expand Down

0 comments on commit eb6b62e

Please sign in to comment.