public void TestFileConsistency() { var training = EncoderTrainingFactory.generateTraining(4, false); var network = (BasicNetwork)EncogDirectoryPersistence.LoadResourceObject("Encog.Resources.xor-nn.eg"); var e = network.CalculateError(training); Assert.AreEqual(0.046796914913558987, e, 0.00001); }