Skip to content

Commit

Permalink
GH-7118 - test that metrics are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Nov 15, 2023
1 parent fed2483 commit c4c8d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private void buildIsolationTreeEnsemble() {
_model._output._scored_train[tid + 1].fillFrom(modelMetrics);
}
}
_model._output._scoring_history = createScoringHistoryTable();
_model._output._scoring_history = _parms._disable_training_metrics ? null : createScoringHistoryTable();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void testBasicTrain() {
ExtendedIsolationForestModel model = eif.trainModel().get();
Scope.track_generic(model);
assertNotNull(model);
assertNull("No scoring history by default", model._output._scoring_history);
} finally {
Scope.exit();
}
Expand Down

0 comments on commit c4c8d5e

Please sign in to comment.