/// <summary>
 /// Creates a new instance of this class
 /// </summary>
 /// <param name="trainingIteration">
 /// Current training iteration
 /// </param>
 /// <param name="trainingSample">
 /// The training sample associated with the event
 /// </param>
 public TrainingSampleEventArgs(int trainingIteration, Entrenamiento trainingSample)
 {
     this.trainingIteration = trainingIteration;
     this.trainingSample    = trainingSample;
 }
Пример #2
0
 public bool Contains(Entrenamiento sample)
 {
     return(trainingSamples.Contains(sample));
 }
Пример #3
0
 /// <summary>
 /// A protected helper function used to train single learning sample
 /// </summary>
 /// <param name="trainingSample">
 /// Training sample to use
 /// </param>
 /// <param name="currentIteration">
 /// Current training epoch (Assumed to be positive and less than <c>trainingEpochs</c>)
 /// </param>
 /// <param name="trainingEpochs">
 /// Number of training epochs (Assumed to be positive)
 /// </param>
 protected abstract void LearnSample(Entrenamiento trainingSample, int currentIteration, int trainingEpochs);
Пример #4
0
 public bool Remove(Entrenamiento sample)
 {
     return(trainingSamples.Remove(sample));
 }