public void testXORSoftMaxFminCG() {
MultilayerPerceptron mlp = MultilayerPerceptron.MultilayerPerceptronBuilder
.create(
new int[] { 2, 4, 2 },
new ActivationFunction[] { LINEAR.get(), SIGMOID.get(),
SOFTMAX.get() }, new CrossEntropyErrorFunction(), new Fmincg(),
100).build();
Tuple<DoubleVector[], DoubleVector[]> sampleXOR = sampleXORSoftMax();
double error = mlp.train(sampleXOR.getFirst(), sampleXOR.getSecond(),
new Fmincg(), 100, 0.0d, false);
System.out.println(error);