/// <summary> /// Returns the default neuron training for this trainer. It /// also sets the learning rate as appropriate. /// </summary> /// <returns>The neuron trainer used by this trainer.</returns> public NeuronTraining GetTraining() { NeuronTraining result = new NeuronTraining(); result.LearningRate = learningRate; result.Momentum = momentum; neuronTrainers.Add(result); return(result); }
/// <summary> /// Set the neuron trainer for this neuron. /// </summary> /// <param name="trainer">The neuron trainer</param> public void SetNeuralTrainer(NeuronTraining trainer) { this.training = trainer; this.training.SetSize(Weights.Length); }
/// <summary> /// Returns the default neuron training for this trainer. It /// also sets the learning rate as appropriate. /// </summary> /// <returns>The neuron trainer used by this trainer.</returns> public NeuronTraining GetTraining() { NeuronTraining result = new NeuronTraining(); result.LearningRate = learningRate; result.Momentum = momentum; neuronTrainers.Add(result); return result; }
/// <summary> /// Set the neuron trainer for this neuron. /// </summary> /// <param name="trainer">The neuron trainer</param> public void SetNeuralTrainer(NeuronTraining trainer) { this.training = trainer; this.training.SetSize(Weights.Length); }