public void LoadSettings(NetworkSettingsXmlFile settings)
        {
            if (settings == null)
                throw new ArgumentException("settings");

            NetworkName = settings.NetworkName;
            _initLayerSizes = settings.LayerSizes;
            _initTransferFunctions = settings.TransferFunctions;

            _layerInput = (double[][])settings.LayerInput.Clone();
            _layerOutput = (double[][])settings.LayerOutput.Clone();

            Initialize();
            RandomizeWeights();
        }
        public void LoadNetwork(NetworkSettingsXmlFile settings)
        {
            if (settings == null)
                throw new ArgumentException("settings");

            NetworkName = settings.NetworkName;
            _inputSize = settings.InputSize;
            _layerCount = settings.LayerCount;
            _layerSize = settings.LayerSizes;
            _transferFunction = settings.TransferFunctions;

            _layerInput = settings.LayerInput;
            _layerOutput = settings.LayerOutput;

            _delta = settings.Delta;
            _bias = settings.Bias;
            _previousBiasDelta = settings.PreviousBiasDelta;

            _weight = settings.Weight;
            _previousWeightDelta = settings.PreviousWeightDelta;
        }