Assert.assertTrue("Improve rate too low for " + train.getClass().getSimpleName() +
",Improve="+improve+",Needed="+requiredImprove, improve>=requiredImprove);
}
public static FreeformNetwork createXORFreeformNetworkUntrained() {
FreeformNetwork network = new FreeformNetwork();
FreeformLayer inputLayer = network.createInputLayer(2);
FreeformLayer hiddenLayer1 = network.createLayer(3);
FreeformLayer outputLayer = network.createOutputLayer(1);
network.connectLayers(inputLayer, hiddenLayer1, new ActivationSigmoid(), 1.0, false);
network.connectLayers(hiddenLayer1, outputLayer, new ActivationSigmoid(), 1.0, false);
network.reset(1000);
return network;
}