Skip to content

Commit

Permalink
Fix typo in parameter validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Jan 7, 2015
1 parent f0ff6f0 commit f6c6996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hex/deeplearning/DeepLearning.java
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ else if (activation != Activation.TanhWithDropout && activation != Activation.Ma
if (input_dropout_ratio < 0 || input_dropout_ratio >= 1) {
throw new IllegalArgumentException("Input dropout must be in [0,1).");
}
if (class_sampling_factors != null || !balance_classes) {
if (class_sampling_factors != null && !balance_classes) {
if (!quiet_mode) Log.info("Ignoring class_sampling_factors since balance_classes is not enabled.");
}

Expand Down

0 comments on commit f6c6996

Please sign in to comment.