(new ConsistentRandomizer(-1,1)).randomize(network);
MLDataSet trainingData = new BasicMLDataSet(XOR.XOR_INPUT,XOR.XOR_IDEAL2);
HessianFD testFD = new HessianFD();
testFD.init(network, trainingData);
testFD.compute();
//dump(testFD, "FD");
HessianCR testCR = new HessianCR();
testCR.init(network, trainingData);
testCR.compute();
//dump(testCR, "CR");
Assert.assertTrue(testCR.getHessianMatrix().equals(testFD.getHessianMatrix(), 4));
}