Saving networks and weights fro EncogModel

2019-09-01 11:01发布

问题:

I was able to create a network, train it and evaluate it using EncogModel. However, i would like to be able to save the network, training and weights, so that every time i run it, i dont have to train it. I found encog persistence, but I'm having a hard time putting encogmodel and percistence together. is there any sample codes available? If not, how could this be done?

回答1:

Used:

SerializeObject.Save(string path, network);

and

EncogUtility.SaveEGB( FileInfo path , data);

EncogDirectoryPersistance.SaveObject(FileInfo f,network) seemed to not support NEAT, it kept returning an error.