public static double XOR_IDEAL[][] = { { 0.0 }, { 1.0 }, { 1.0 }, { 0.0 } };
public static void main(final String args[]) {
final BasicNetwork network = new BasicNetwork();
network.addLayer(new BasicLayer(null, true, 2));
network.addLayer(new BasicLayer(new ActivationSigmoidPosNeg(), true, 4));
network.addLayer(new BasicLayer(new ActivationSigmoidPosNeg(), true, 1));
network.getStructure().finalizeStructure();
network.reset();
final MLDataSet trainingSet = new BasicMLDataSet(
CustomActivation.XOR_INPUT, CustomActivation.XOR_IDEAL);