Example #1
0
        /// <summary>
        /// Clone the net.
        /// </summary>
        /// <returns></returns>
        public Net Clone()
        {
            FeedForward clone = (FeedForward)this.MemberwiseClone();

            clone.weights = new double[this.weights.Length];
            Array.Copy(this.weights, clone.weights, this.weights.Length);
            return(clone);
        }
Example #2
0
 public NetSaveData(string name, string tag, NeuralNet.FeedForward net)
 {
     this.name       = name;
     this.tag        = tag;
     this.fitness    = net.Fitness;
     this.layerSizes = net.layerSizes;
     this.weights    = net.weights;
 }