Skip to content

Commit

Permalink
Better PROBEN1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffheaton committed Jul 22, 2015
1 parent fbaaa11 commit fcdb573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -7,7 +7,7 @@
import org.encog.examples.proben.ProBenData;
import org.encog.examples.proben.ProBenResultAccumulator;
import org.encog.examples.proben.ProBenRunner;
import org.encog.mathutil.randomize.RangeRandomizer;
import org.encog.mathutil.randomize.XaiverRandomizer;
import org.encog.ml.MLMethod;
import org.encog.ml.train.MLTrain;
import org.encog.ml.train.strategy.RequiredImprovementStrategy;
Expand Down Expand Up @@ -40,7 +40,7 @@ public MLMethod createMethod(ProBenData data) {
network.addLayer(new BasicLayer(new ActivationLinear(),false,data.getIdealCount()));
network.getStructure().finalizeStructure();
network.reset();
(new RangeRandomizer(-10,10)).randomize(network);
(new XaiverRandomizer()).randomize(network);
return network;
}

Expand Down Expand Up @@ -108,6 +108,6 @@ public double getInputCenter() {

@Override
public double getOutputCenter() {
return 1;
return 2;
}
}
2 changes: 1 addition & 1 deletion src/main/java/org/encog/examples/proben/ProBenData.java
Expand Up @@ -60,7 +60,7 @@ public ProBenData(File file, boolean mergeTest) {
}

public static String obtainProbenPath(String[] args) {
if (args.length < 0) {
if (args.length > 0) {
return args[0];
} else {
System.out
Expand Down

0 comments on commit fcdb573

Please sign in to comment.