if (hidden == null) throw new IllegalArgumentException("There must be at least one hidden layer.");
for (int i=0;i<hidden.length;++i) {
if (hidden[i]==0)
throw new IllegalArgumentException("Hidden layer size must be >0.");
}
<BUG>if (hidden_dropout_ratios == null) {
hidden_dropout_ratios = new double[hidden.length];
if (activation == Activation.TanhWithDropout || activation == Activation.MaxoutWithDropout || activation == Activation.RectifierWithDropout) {</BUG>
if (!quiet_mode) Log.info("Automatically setting all hidden dropout ratios to 0.5.");
Arrays.fill(hidden_dropout_ratios, 0.5);

if (hidden == null) throw new IllegalArgumentException("There must be at least one hidden layer.");
for (int i=0;i<hidden.length;++i) {
if (hidden[i]==0)
throw new IllegalArgumentException("Hidden layer size must be >0.");
}
if (hidden_dropout_ratios == null) {
if (activation == Activation.TanhWithDropout || activation == Activation.MaxoutWithDropout || activation == Activation.RectifierWithDropout) {
hidden_dropout_ratios = new double[hidden.length];
if (!quiet_mode) Log.info("Automatically setting all hidden dropout ratios to 0.5.");
Arrays.fill(hidden_dropout_ratios, 0.5);
