diff --git a/src/whylogs/core/metrics/model_metrics.py b/src/whylogs/core/metrics/model_metrics.py index e431baecf1..5837384e96 100644 --- a/src/whylogs/core/metrics/model_metrics.py +++ b/src/whylogs/core/metrics/model_metrics.py @@ -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: