Skip to content

Commit

Permalink
add corner cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
lalmei committed Apr 1, 2021
1 parent d2ab1bb commit 9b37dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/whylogs/core/metrics/model_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def merge(self, other):
"""
if other is None:
return self
if other.confusion_matrix is None:
if other.confusion_matrix is None and other.regression_metrics is None:
# TODO: return a copy instead
return self
if self.confusion_matrix is None:
if self.confusion_matrix is None and self.regression_metrics is None:
return other

if self.model_type is None or other.model_type is None:
Expand Down

0 comments on commit 9b37dd1

Please sign in to comment.