public final File EG_FILENAME = TEMP_DIR.createFile("encogtest.eg");
public final File SERIAL_FILENAME = TEMP_DIR.createFile("encogtest.ser");
public void testPersistEG()
{
BoltzmannMachine network = new BoltzmannMachine(4);
network.setWeight(1,1,1);
network.getThreshold()[2] = 2;
EncogDirectoryPersistence.saveObject(EG_FILENAME, network);
BoltzmannMachine network2 = (BoltzmannMachine)EncogDirectoryPersistence.loadObject(EG_FILENAME);
validateHopfield(network2);
}