예제 #1
0
 private Color getStatusColor(TrainingEnd value)
 {
     if (value == TrainingEnd.Break)
     {
         return(Color.Red);
     }
     else if (value == TrainingEnd.Complete)
     {
         return(Color.Green);
     }
     return(Color.Blue);
 }
예제 #2
0
 public virtual void SetData(DateTime startDate, DateTime?endDate, TrainingEnd trainingEnd)
 {
     this.StartDate   = startDate;
     this.EndDate     = endDate;
     this.TrainingEnd = trainingEnd;
 }
 /// <summary>
 /// Called when [training end].
 /// </summary>
 /// <param name="history">The history.</param>
 /// <param name="duration">The duration.</param>
 protected void OnTrainingEnd(History history, long duration)
 {
     TrainingEnd?.Invoke(this, new TrainingEndEventArgs(history, duration));
 }
예제 #4
0
파일: Perceptron.cs 프로젝트: MDKIP/Reature
 protected void OnTrainigEnd(float[] inputs, float answer, float guess, float error)
 {
     TrainingEnd?.Invoke(inputs, answer, guess, error);
 }