FeedForwardNeuralNetwork ffnn = new FeedForwardNeuralNetwork(
hiddenLayerWeightMatrix, hiddenLayerBiasVector,
outputLayerWeightMatrix, outputLayerBiasVector);
ffnn.setTrainingScheme(new BackPropLearning(learningRate,
momentumFactor));
ffnn.processInput(input);
ffnn.processError(error);
Matrix finalHiddenLayerWeights = ffnn.getHiddenLayerWeights();
Assert.assertEquals(-0.265, finalHiddenLayerWeights.get(0, 0), 0.001);
Assert.assertEquals(-0.419, finalHiddenLayerWeights.get(1, 0), 0.001);