From 9b37dd132185e41b54ebdc97cbeef1440f44c3b1 Mon Sep 17 00:00:00 2001 From: "Leandro G. Almeida" Date: Thu, 1 Apr 2021 14:53:20 -0700 Subject: [PATCH] add corner cases. --- src/whylogs/core/metrics/model_metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: