Encog.Neural.Flat.FlatNetwork.DecodeNetwork C# (CSharp) Method

DecodeNetwork() public method

Decode the specified data into the weights of the neural network. This method performs the opposite of encodeNetwork.
public DecodeNetwork ( double data ) : void
data double The data to be decoded.
return void
        public void DecodeNetwork(double[] data)
        {
            if (data.Length != _weights.Length)
            {
                throw new EncogError(
                    "Incompatable weight sizes, can't assign length="
                    + data.Length + " to length=" + data.Length);
            }
            _weights = data;
        }