Exemple #1
0
        /// <summary>
        /// Конструктор с параметром обучения нейросети
        /// </summary>
        public NeuralNetwork(int trainigCoof)
        {
            _first = new InputLayer(6);

            _second = new HiddenLayer(2);

            _third = new OutputLayer(6);

            _sFirst = new SynapseLayer(6, 2);

            _sSecond = new SynapseLayer(2, 6);

            this._trainigCoof = trainigCoof;
            ValueCrit         = 0;
        }
Exemple #2
0
        /// <sumarry>
        /// Конструктор для наследования нейросети
        /// </sumarry>
        public NeuralNetwork(NeuralNetwork baseNet, bool triggerTrain)
        {
            _first = new InputLayer(6);

            _second = new HiddenLayer(2);

            _third = new OutputLayer(6);

            _sFirst = new SynapseLayer(6, 2);

            _sSecond = new SynapseLayer(2, 6);

            _trainigCoof = baseNet.TraingCoof;

            _sFirst = new SynapseLayer(baseNet.SFirst, baseNet.TraingCoof, triggerTrain);

            _sSecond  = new SynapseLayer(baseNet.SSecond, baseNet.TraingCoof, triggerTrain);
            ValueCrit = 0;
        }