Changeset 12218 for branches/SensitivityEvaluator/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective
- Timestamp:
- 03/17/15 17:22:57 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SensitivityEvaluator/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveWeightedPerformanceMeasuresEvaluator.cs
r12216 r12218 102 102 IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 103 103 IEnumerable<double> targetClassValues = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, rows); 104 IEnumerable<double> boundedEstimatedValues = estimatedValues.LimitToRange(lowerEstimationLimit, upperEstimationLimit); 104 105 OnlineCalculatorError errorState; 105 106 double nmse; … … 109 110 string positiveClassName = problemData.PositiveClass; 110 111 double[] classValues, thresholds; 111 model.ThresholdCalculator.Calculate(problemData, estimatedValues, targetClassValues, out classValues, out thresholds);112 model.ThresholdCalculator.Calculate(problemData, boundedEstimatedValues, targetClassValues, out classValues, out thresholds); 112 113 model.SetThresholdsAndClassValues(thresholds, classValues); 113 114 var performanceCalculator = new ClassificationPerformanceMeasuresCalculator(positiveClassName, problemData.GetClassValue(positiveClassName)); 114 var estimatedClassValues = model.GetEstimatedClassValues( estimatedValues);115 var estimatedClassValues = model.GetEstimatedClassValues(boundedEstimatedValues); 115 116 performanceCalculator.Calculate(targetClassValues, estimatedClassValues); 116 117 if (performanceCalculator.ErrorState != OnlineCalculatorError.None) … … 125 126 nmse = nmseCalculator.NormalizedMeanSquaredError; 126 127 } else { 127 IEnumerable<double> boundedEstimatedValues = estimatedValues.LimitToRange(lowerEstimationLimit, upperEstimationLimit);128 128 nmse = OnlineNormalizedMeanSquaredErrorCalculator.Calculate(targetClassValues, boundedEstimatedValues, out errorState); 129 129 }
Note: See TracChangeset
for help on using the changeset viewer.