I've got a network trained and I want to save it and be able to load it later so I don't have to re-train it... duh.
End of training code:
//Save network
SerializeObject.save(new File("encognet"),network);
Encog.getInstance().shutdown();
Loading File
BasicNetwork network = (BasicNetwork) EncogDirectoryPersistence.loadObject(new File("encognet"));
I get this error
Exception in thread "main" org.encog.persist.PersistError: Not a valid EG file.
Can anyone tell me how to fix this?