September 2018
Intermediate to advanced
328 pages
10h 46m
English
This function will allow us to import a previously saved network. Again, note the return value that makes this a fluent interface:
public static Network ImportNetwork(){
Get the filename of the previously saved network. Once opened, deserialize it into a network structure that we will deal with. (If it didn't work for some reason, abort!):
var dn = GetHelperNetwork(); if (dn == null) return null;
Create a new Network and a list of neurons to populate:
var network = new Network(); var allNeurons = new List<Neuron>();
Copy over the learning rate and the momentum that was previously saved:
network.LearningRate = dn.LearningRate; network.Momentum = dn.Momentum;
Create input layers from our imported network data: ...
Read now
Unlock full access