Skip to content

Commit

Permalink
Skip evaluation when split is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Aug 29, 2024
1 parent 7b07000 commit 85eaafd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ public String splitTrainEvaluate(Double split, boolean incremental) {
// if we are here, that means that training succeeded
renameModels(oldModelPath, tempModelPath);

if (split == 1.0) {
return "Split ratio is 1.0, no evaluation performed.";
}

return EvaluationUtilities.evaluateStandard(evalDataPath.getAbsolutePath(), getTagger()).toString();
}

Expand Down

0 comments on commit 85eaafd

Please sign in to comment.