BasicNetwork network = new BasicNetwork();
network.addLayer(new BasicLayer(null, false, 2));
network.addLayer(new BasicLayer(new ActivationSigmoid(), true, 3));
network.addLayer(new BasicLayer(new ActivationSigmoid(), true, 1));
network.getStructure().finalizeStructure();
network.reset();
(new ConsistentRandomizer(0,0.5,i)).randomize(network);
// create training data
MLDataSet trainingSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);