Skip to content

Commit

Permalink
Merge branch 'arno-deeplearning2'
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Feb 25, 2014
2 parents edcc20a + 18fb012 commit 54109d3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/main/java/hex/nn/NNModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ public boolean generateHTML(String title, StringBuilder sb) {

model_info.job().toHTML(sb);
sb.append("<div class='alert'>Actions: "
+ (Job.isRunning(jobKey) ? Cancel.link(jobKey, "Cancel job") + ", " : "")
+ (Job.isRunning(jobKey) ? Cancel.link(jobKey, "Stop training") + ", " : "")
+ is2.link("Inspect training data", _dataKey) + ", "
+ (model_info().parameters.validation != null ? (is2.link("Inspect validation data", model_info().parameters.validation._key) + ", ") : "")
+ water.api.Predict.link(_key, "Score on dataset") + ", " +
Expand Down Expand Up @@ -721,14 +721,18 @@ else if (i < neurons.length-1) {
sb.append("<h3>" + "Progress" + "</h3>");
sb.append("<h4>" + "Epochs: " + String.format("%.3f", epoch_counter) + "</h4>");

final long pts = fulltrain ? model_info().data_info()._adaptedFrame.numRows() : score_train;
String training = "Number of training set samples for scoring: " + (fulltrain ? "all " : "") + pts;
if (pts < 1000 && model_info().data_info()._adaptedFrame.numRows() >= 1000) training += " (low, scoring might be inaccurate -> consider increasing this number in the expert mode)";
if (pts > 100000) training += " (large, scoring can be slow -> consider reducing this number in the expert mode or scoring manually)";
DocGen.HTML.section(sb, training);
// training
{
final long pts = fulltrain ? model_info().data_info()._adaptedFrame.numRows() : score_train;
String training = "Number of training set samples for scoring: " + (fulltrain ? "all " : "") + pts;
if (pts < 1000 && model_info().data_info()._adaptedFrame.numRows() >= 1000) training += " (low, scoring might be inaccurate -> consider increasing this number in the expert mode)";
if (pts > 100000) training += " (large, scoring can be slow -> consider reducing this number in the expert mode or scoring manually)";
DocGen.HTML.section(sb, training);
}
// validation
if (error.validation) {
final long ptsv = fullvalid ? model_info().get_params().validation.numRows() : score_valid;
String validation = "Number of validation set samples for scoring: " + (fullvalid ? "all " : "") + pts;
String validation = "Number of validation set samples for scoring: " + (fullvalid ? "all " : "") + ptsv;
if (ptsv < 1000 && model_info().get_params().validation.numRows() >= 1000) validation += " (low, scoring might be inaccurate -> consider increasing this number in the expert mode)";
if (ptsv > 100000) validation += " (large, scoring can be slow -> consider reducing this number in the expert mode or scoring manually)";
DocGen.HTML.section(sb, validation);
Expand Down

0 comments on commit 54109d3

Please sign in to comment.