Changeset 18027 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolutionBase.cs
- Timestamp:
- 07/20/21 18:13:55 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis merged: 17931,17937,17958,17960-17964,17981-17982,17999-18000
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis/3.4
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis/3.4 merged: 17931,17937,17958,17960-17964,17981-17982,17999-18000
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolutionBase.cs
r17180 r18027 34 34 private const string TrainingAccuracyResultName = "Accuracy (training)"; 35 35 private const string TestAccuracyResultName = "Accuracy (test)"; 36 private const string TrainingNormalizedGiniCoefficientResultName = "Norm alized Gini Coefficient(training)";37 private const string TestNormalizedGiniCoefficientResultName = "Norm alized Gini Coefficient(test)";36 private const string TrainingNormalizedGiniCoefficientResultName = "Norm. Gini coeff. (training)"; 37 private const string TestNormalizedGiniCoefficientResultName = "Norm. Gini coeff. (test)"; 38 38 private const string ClassificationPerformanceMeasuresResultName = "Classification Performance Measures"; 39 39 … … 97 97 if (string.IsNullOrEmpty(Model.TargetVariable)) 98 98 Model.TargetVariable = this.ProblemData.TargetVariable; 99 100 if (!this.ContainsKey(TrainingNormalizedGiniCoefficientResultName)) 99 var newResult = false; 100 if (!this.ContainsKey(TrainingNormalizedGiniCoefficientResultName)) { 101 101 Add(new Result(TrainingNormalizedGiniCoefficientResultName, "Normalized Gini coefficient of the model on the training partition.", new DoubleValue())); 102 if (!this.ContainsKey(TestNormalizedGiniCoefficientResultName)) 102 newResult = true; 103 } 104 if (!this.ContainsKey(TestNormalizedGiniCoefficientResultName)) { 103 105 Add(new Result(TestNormalizedGiniCoefficientResultName, "Normalized Gini coefficient of the model on the test partition.", new DoubleValue())); 106 newResult = true; 107 } 104 108 if (!this.ContainsKey(ClassificationPerformanceMeasuresResultName)) { 105 109 Add(new Result(ClassificationPerformanceMeasuresResultName, @"Classification performance measures.\n 106 110 In a multiclass classification all misclassifications of the negative class will be treated as true negatives except on positive class estimations.", 107 111 new ClassificationPerformanceMeasuresResultCollection())); 108 CalculateClassificationResults();112 newResult = true; 109 113 } 114 if (newResult) CalculateClassificationResults(); 110 115 } 111 116
Note: See TracChangeset
for help on using the changeset viewer.