Changeset 6961 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification
- Timestamp:
- 11/08/11 10:13:21 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolutionBase.cs
r6913 r6961 84 84 85 85 OnlineCalculatorError errorState; 86 double trainingAccuracy = OnlineAccuracyCalculator.Calculate( estimatedTrainingClassValues, originalTrainingClassValues, out errorState);86 double trainingAccuracy = OnlineAccuracyCalculator.Calculate(originalTrainingClassValues, estimatedTrainingClassValues, out errorState); 87 87 if (errorState != OnlineCalculatorError.None) trainingAccuracy = double.NaN; 88 double testAccuracy = OnlineAccuracyCalculator.Calculate( estimatedTestClassValues, originalTestClassValues, out errorState);88 double testAccuracy = OnlineAccuracyCalculator.Calculate(originalTestClassValues, estimatedTestClassValues, out errorState); 89 89 if (errorState != OnlineCalculatorError.None) testAccuracy = double.NaN; 90 90 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/DiscriminantFunctionClassificationSolutionBase.cs
r6913 r6961 108 108 109 109 OnlineCalculatorError errorState; 110 double trainingMSE = OnlineMeanSquaredErrorCalculator.Calculate( estimatedTrainingValues, originalTrainingValues, out errorState);110 double trainingMSE = OnlineMeanSquaredErrorCalculator.Calculate(originalTrainingValues, estimatedTrainingValues, out errorState); 111 111 TrainingMeanSquaredError = errorState == OnlineCalculatorError.None ? trainingMSE : double.NaN; 112 double testMSE = OnlineMeanSquaredErrorCalculator.Calculate( estimatedTestValues, originalTestValues, out errorState);112 double testMSE = OnlineMeanSquaredErrorCalculator.Calculate(originalTestValues, estimatedTestValues, out errorState); 113 113 TestMeanSquaredError = errorState == OnlineCalculatorError.None ? testMSE : double.NaN; 114 114 115 double trainingR2 = OnlinePearsonsRSquaredCalculator.Calculate( estimatedTrainingValues, originalTrainingValues, out errorState);115 double trainingR2 = OnlinePearsonsRSquaredCalculator.Calculate(originalTrainingValues, estimatedTrainingValues, out errorState); 116 116 TrainingRSquared = errorState == OnlineCalculatorError.None ? trainingR2 : double.NaN; 117 double testR2 = OnlinePearsonsRSquaredCalculator.Calculate( estimatedTestValues, originalTestValues, out errorState);117 double testR2 = OnlinePearsonsRSquaredCalculator.Calculate(originalTestValues, estimatedTestValues, out errorState); 118 118 TestRSquared = errorState == OnlineCalculatorError.None ? testR2 : double.NaN; 119 119
Note: See TracChangeset
for help on using the changeset viewer.