//input = new double[]{0, 0};
//output = new double[]{1, 1};
IActivationFactory factory = new ActivationFactory();
ILayer inputLayer = new Layer(1, factory.getLinearFunction());
ILayer hiddenLayer1 = new Layer(4, factory.getHyperbolicTangent());
ILayer hiddenLayer2 = new Layer(4, factory.getHyperbolicTangent());
ILayer outputLayer = new Layer(1, factory.getLinearFunction());
// check
if (input.length != output.length || input.length != inputLayer.getNeuronsCount() || output.length != outputLayer.getNeuronsCount()) {
System.exit(1);
}
network = new ILayer[]{inputLayer, hiddenLayer1, outputLayer};