示例#1
0
        protected virtual void OnFeatureRegistered(FeatureRegisteredEventArgs e)
        {
            FeatureRegisteredEventHandler handler = FeatureRegistered;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 //private void GreenCrudBasedCollection_TransformCompleted(object sender, EventArgs e)
 //{
 //    Console.WriteLine("Transformation Completed => "+this.CurrentDataStructure.ToString());//OVERHEAD, comment the line to reduce the overhead
 //}
 private void GreenComponent_FeatureRegistered(object sender, FeatureRegisteredEventArgs e)
 {
     PredictionResultMessage = string.Format("{1} (SC={2}, PD={0:0.00}%)", e.PredictionProbabilityValue, e.NextPredictedDataStructure, e.RegisteredCountFromLastTransformation);
     Console.WriteLine(string.Format("{6}: Feature Registered=>G={0}, N={1}, %C={2}, %R={3}, %U={4}, %D={5}, ClassifiedDS ={11}, CDS={6}, PD={7}, NDS={8}, RegCount={9}, Yes Decision={10}", e.InterfaceAndSetBagPropertyGroup, e.ElementSizeAtTimeOfOperation, e.PercentC, e.PercentR, e.PercentU, e.PercentD, e.CurrentDataStructure, e.PredictionProbabilityValue, e.NextPredictedDataStructure, e.RegisteredCountFromLastTransformation, GetYesDecisionCount(), e.ClassifiedDataStructure));
 }