public void AddNeuron(TNeuron Neuron) { if (Neuron.ID != -1) { return; } int num = this.fNeuron.Add((object)Neuron); Neuron.ID = num; }
public virtual void Disconnect(TNeuron Neuron) { foreach (TNeuralWeight tneuralWeight in this.weights) { if (tneuralWeight.Neuron == Neuron) { this.weights.Remove((object) tneuralWeight); break; } } }
public TNeuralWeight(TNeuron neuron) { this.Neuron = neuron; this.RlTATm4JD = neuron.ID; if (TNeuralNetwork.Network.InitMode == EWeightInitMode.Random) this.Randomize(); else this.Weight = 0.0; this.rYdS9wvbM = this.Weight; this.uOXtaamso = 0.0; this.iwqhxvM4s = 0.0; this.fIoOrFPcr = TNeuralNetwork.Network.RpropDeltaInit; this.UvZNU7mk8 = this.fIoOrFPcr; TNeuralNetwork.Network.AddWeight(this); }
public TNeuralWeight GetMaxWeight() { if (this.u25o0XTtW) { double num = -10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight maxWeight = tneuron.GetMaxWeight(); if (maxWeight != null && maxWeight.Weight > num) { this.Vlon5OFCQ = tneuron; this.hG4PgBLCK = maxWeight; num = maxWeight.Weight; } } this.u25o0XTtW = false; } return(this.hG4PgBLCK); }
public TNeuralWeight GetMinWeight() { if (this.KCL7WIToG) { double num = 10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight minWeight = tneuron.GetMinWeight(); if (minWeight != null && minWeight.Weight < num) { this.ahkE1lI8Y = tneuron; this.EGtFBCxEX = minWeight; num = minWeight.Weight; } } this.KCL7WIToG = false; } return(this.EGtFBCxEX); }
public TNeuralWeight(TNeuron neuron) { this.Neuron = neuron; this.RlTATm4JD = neuron.ID; if (TNeuralNetwork.Network.InitMode == EWeightInitMode.Random) { this.Randomize(); } else { this.Weight = 0.0; } this.rYdS9wvbM = this.Weight; this.uOXtaamso = 0.0; this.iwqhxvM4s = 0.0; this.fIoOrFPcr = TNeuralNetwork.Network.RpropDeltaInit; this.UvZNU7mk8 = this.fIoOrFPcr; TNeuralNetwork.Network.AddWeight(this); }
public virtual void Connect(TNeuron Neuron) { this.weights.Add((object) new TNeuralWeight(Neuron)); }
public override void Disconnect(TNeuron Neuron) { }
public override void Connect(TNeuron Neuron) { }
public TNeuralWeight GetMaxWeight() { if (this.u25o0XTtW) { double num = -10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight maxWeight = tneuron.GetMaxWeight(); if (maxWeight != null && maxWeight.Weight > num) { this.Vlon5OFCQ = tneuron; this.hG4PgBLCK = maxWeight; num = maxWeight.Weight; } } this.u25o0XTtW = false; } return this.hG4PgBLCK; }
public TNeuralWeight GetMinWeight() { if (this.KCL7WIToG) { double num = 10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight minWeight = tneuron.GetMinWeight(); if (minWeight != null && minWeight.Weight < num) { this.ahkE1lI8Y = tneuron; this.EGtFBCxEX = minWeight; num = minWeight.Weight; } } this.KCL7WIToG = false; } return this.EGtFBCxEX; }
public void AddNeuron(TNeuron Neuron) { if (Neuron.ID != -1) return; int num = this.fNeuron.Add((object) Neuron); Neuron.ID = num; }