public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("activationFunction", activationFunction.GetSerializedName(), typeof(string)); info.AddValue("weightMx", weightMx); info.AddValue("biases", biases); }
Network(List <Layer> layers, IActivationFunction activationFunction) { this.layers = layers; this.activationFunction = activationFunction; this.activationFunctionName = activationFunction.GetSerializedName(); }