System.out.println("Loading network");
BasicNetwork network = (BasicNetwork)EncogDirectoryPersistence.loadObject(new File(FILENAME));
MLDataSet trainingSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
double e = network.calculateError(trainingSet);
System.out
.println("Loaded network's error is(should be same as above): "
+ e);
}