Skip to content

Commit 3588526

Browse files
authored
fix: log_classification_metrics (#1742)
1 parent 9e77c61 commit 3588526

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

google/cloud/aiplatform/metadata/experiment_run_resource.py

+2
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,8 @@ def log_classification_metrics(
10451045
if (fpr or tpr or threshold) and not (fpr and tpr and threshold):
10461046
raise ValueError("fpr, tpr, and thresholds must be set together.")
10471047

1048+
confusion_matrix = confidence_metrics = None
1049+
10481050
if labels and matrix:
10491051
if len(matrix) != len(labels):
10501052
raise ValueError(

0 commit comments

Comments
 (0)