Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
		/// <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);
		}
Exemplo n.º 3
0
		/// <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;
		}
Exemplo n.º 4
0
 /// <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);
 }