static public FeedForwardNetwork Load(string _FileName) { BinaryFormatter binaryFormatter = new BinaryFormatter(); FileStream fileReader = new FileStream(_FileName, FileMode.Open); FeedForwardNetwork Result = (FeedForwardNetwork)binaryFormatter.Deserialize(fileReader); fileReader.Close(); return(Result); }
public FeedForwardNetwork(FeedForwardNetwork _Example) { Layers = new List <ActivationLayer>(_Example.Layers); ActivationFunction = _Example.ActivationFunction; }