Skip to content

Commit

Permalink
Print scoring error after assigning to model.err, not before.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Apr 7, 2014
1 parent 737ca67 commit 7af3d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hex/deeplearning/DeepLearningModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,7 @@ boolean doScoring(Frame train, Frame ftrain, Frame ftest, Key job_key, Job.Valid
}

_timeLastScoreEnd = System.currentTimeMillis();
// print the freshly scored model to ASCII
for (String s : toString().split("\n")) Log.info(s);
err.scoring_time = System.currentTimeMillis() - now;
if (printme) Log.info("Time taken for scoring: " + PrettyPrint.msecs(err.scoring_time, true));
// enlarge the error array by one, push latest score back
if (errors == null) {
errors = new Errors[]{err};
Expand All @@ -732,6 +729,9 @@ boolean doScoring(Frame train, Frame ftrain, Frame ftest, Key job_key, Job.Valid
err2[err2.length-1] = err;
errors = err2;
}
// print the freshly scored model to ASCII
for (String s : toString().split("\n")) Log.info(s);
if (printme) Log.info("Time taken for scoring: " + PrettyPrint.msecs(err.scoring_time, true));
}
if (model_info().unstable()) {
Log.err("Canceling job since the model is unstable (exponential growth observed).");
Expand Down

0 comments on commit 7af3d95

Please sign in to comment.