public object Clone()
        {
            List <Matrix <double> > hidden = new List <Matrix <double> >();

            foreach (Matrix <double> layer in HiddenLayers)
            {
                hidden.Add(layer.Clone() as Matrix <double>);
            }
            return(new NeuralNetwork(hidden, OutputLayer.Clone() as Matrix <double>,
                                     Bias.Clone() as Matrix <double>));
        }
Beispiel #2
0
 public INetwork Clone()
 {
     return(new Network(InputLayer.Clone(), HiddenLayers.SelectArray(x => x.Clone()), OutputLayer.Clone()));
 }