protected void OnSingleFeatureClassified(
     object sender,
     C45SingleFeatureSetClassifiedEventArgs e)
 {
     if (this.SingleFeatureClassified != null)
     {
         this.SingleFeatureClassified(
             sender,
             e);
     }
 }
Пример #2
0
 void FeatureSetCollection_SingleFeatureClassified(
     object sender,
     C45SingleFeatureSetClassifiedEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new SingleFeatureClassifiedEventHandler(FeatureSetCollection_SingleFeatureClassified),
                          new object[] { sender, e });
     }
     else
     {
         this.progressBarState.PerformStep();
         int totalConsultationtime = Convert.ToInt32(this.labelFeatureSets.Text) * Convert.ToInt32(this.labelConsultationTime.Text);
         totalConsultationtime                    += (int)e.Statistics.ConsultationTime;
         this.labelFeatureSets.Text                = (Convert.ToInt32(this.labelFeatureSets.Text) + 1).ToString();
         this.labelConsultationTime.Text           = (totalConsultationtime / Convert.ToInt32(this.labelFeatureSets.Text)).ToString();
         this.labelDecisionTreeSize.Text           = e.Statistics.TreeItems.ToString();
         this.labelDecisionTreeGenerationTime.Text = e.Statistics.DecisionTreeGenerationTime.ToString();
         this.statusStrip.Text                     = "Single featureset classified";
     }
 }