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) assert new_metrics.model_type == ModelType.UNKNOWN
def test_merge_metrics_with_none_confusion_matrix(): metrics = ModelMetrics() other = ModelMetrics() other.confusion_matrix = None metrics.merge(other)