Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
lalmei committed Apr 1, 2021
1 parent 3cdae3d commit a000273
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/unit/core/metrics/test_model_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,22 @@ def test_merge_metrics_with_none_confusion_matrix():
metrics = ModelMetrics()
other = ModelMetrics()
other.confusion_matrix = None
metrics.merge(other)
new_metrics = metrics.merge(other)


def test_merge_metrics_with_none_regression_matrix():
metrics = ModelMetrics()
other = ModelMetrics()
other.regression_metrics = None
new_metrics= metrics.merge(other)

def test_merge_metrics_with_none_confusion_matrix():
metrics = ModelMetrics()
other = ModelMetrics()
other.confusion_matrix = None
other.regression_metrics = None

new_metrics = metrics.merge(other)

def test_model_metrics_init():
reg_met = RegressionMetrics()
Expand Down

0 comments on commit a000273

Please sign in to comment.