/// <summary> /// Конструктор с параметром обучения нейросети /// </summary> public NeuralNetwork(int TrainigCoof) { First = new InputLayer(6); Second = new HiddenLayer(5); Third = new HiddenLayer(4); Forth = new HiddenLayer(2); Fifth = new OutputLayer(4); SFirst = new SynapseLayer(6, 5); SSecond = new SynapseLayer(5, 4); SThird = new SynapseLayer(4, 2); SFourth = new SynapseLayer(2, 4); this.TrainigCoof = TrainigCoof; }
///<sumarry> ///Конструктор для наследования нейросети ///</sumarry> public NeuralNetwork(NeuralNetwork BaseNet) { First = new InputLayer(6); Second = new HiddenLayer(5); Third = new HiddenLayer(4); Forth = new HiddenLayer(2); Fifth = new OutputLayer(4); TrainigCoof = BaseNet.TRAING_COOF; SFirst = new SynapseLayer(BaseNet.S_FIRST, BaseNet.TRAING_COOF); SSecond = new SynapseLayer(BaseNet.S_CECOND, BaseNet.TRAING_COOF); SThird = new SynapseLayer(BaseNet.S_THIRD, BaseNet.TRAING_COOF); SFourth = new SynapseLayer(BaseNet.S_FORTH, BaseNet.TRAING_COOF); }
///<summary> /// Конструктор для наследования /// </summary> public NeuralNetwork(int TrainigCoof, double [,] SFirst, double [,] SSecond, double[,] SThird, double[,] SFourth) { First = new InputLayer(6); Second = new HiddenLayer(5); Third = new HiddenLayer(4); Forth = new HiddenLayer(2); Fifth = new OutputLayer(4); this.SFirst = new SynapseLayer(SFirst, TrainigCoof); this.SSecond = new SynapseLayer(SSecond, TrainigCoof); this.SThird = new SynapseLayer(SThird, TrainigCoof); this.SFourth = new SynapseLayer(SFourth, TrainigCoof); this.TrainigCoof = TrainigCoof; }