Skip to content

Commit

Permalink
Turn off max_w2 for MNIST example, no benefit.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Apr 19, 2014
1 parent 2a9e31c commit 44b0cd2
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions h2o-samples/src/main/java/samples/expert/DeepLearningMnist.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
public class DeepLearningMnist extends Job {
public static void main(String[] args) throws Exception {
Class job = DeepLearningMnist.class;
samples.launchers.CloudLocal.launch(job, 1);
// samples.launchers.CloudLocal.launch(job, 1);
// samples.launchers.CloudProcess.launch(job, 4);
//samples.launchers.CloudConnect.launch(job, "localhost:54321");
// samples.launchers.CloudRemote.launchIPs(job, "192.168.1.171", "192.168.1.172", "192.168.1.173", "192.168.1.174", "192.168.1.175");
// samples.launchers.CloudRemote.launchIPs(job, "192.168.1.162", "192.168.1.161", "192.168.1.163", "192.168.1.164");
// samples.launchers.CloudRemote.launchIPs(job, "192.168.1.161", "192.168.1.162", "192.168.1.164");
// samples.launchers.CloudRemote.launchIPs(job, "192.168.1.162", "192.168.1.164");
// samples.launchers.CloudRemote.launchIPs(job, "192.168.1.164");
samples.launchers.CloudRemote.launchIPs(job, "192.168.1.164");
// samples.launchers.CloudRemote.launchEC2(job, 4);
}

Expand All @@ -44,23 +44,29 @@ public static void main(String[] args) throws Exception {
p.activation = DeepLearning.Activation.RectifierWithDropout;
p.loss = DeepLearning.Loss.CrossEntropy;
p.input_dropout_ratio = 0.2;
p.max_w2 = 15;
p.epochs = 10000;
p.l1 = 1e-5;
p.l2 = 0;

// automatic learning rate
p.adaptive_rate = true;
p.rho = 0.99;
p.epsilon = 1e-8;
if (true) {
// automatic learning rate
p.adaptive_rate = true;
p.rho = 0.99;
p.epsilon = 1e-8;
// p.max_w2 = 15;
p.max_w2 = Float.POSITIVE_INFINITY;
} else {
// manual learning rate
p.adaptive_rate = false;
p.rate = 0.01;
p.rate_annealing = 1e-6;
p.momentum_start = 0.5;
p.momentum_ramp = 1800000;
p.momentum_stable = 0.99;
// p.max_w2 = 15;
p.max_w2 = Float.POSITIVE_INFINITY;
}

// manual learning rate
// p.adaptive_rate = false;
// p.rate = 0.01;
// p.rate_annealing = 1e-6;
// p.momentum_start = 0.5;
// p.momentum_ramp = 1800000;
// p.momentum_stable = 0.99;

p.initial_weight_distribution = DeepLearning.InitialWeightDistribution.UniformAdaptive;
// p.initial_weight_scale = 0.01
Expand Down

0 comments on commit 44b0cd2

Please sign in to comment.