Changeset 2428
- Timestamp:
- 10/15/09 12:36:04 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Modeling/3.2
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/HeuristicLab.Modeling-3.2.csproj
r2388 r2428 82 82 </ItemGroup> 83 83 <ItemGroup> 84 <Compile Include="alglib\ap.cs" /> 85 <Compile Include="alglib\correlation.cs" /> 84 86 <Compile Include="AnalyzerModel.cs" /> 85 87 <Compile Include="BestSolutionStorer.cs" /> 88 <Compile Include="SimpleStableCorrelationCoefficientEvaluator.cs" /> 89 <Compile Include="SimplePearsonCorrelationCoefficientEvaluator.cs" /> 90 <Compile Include="SimpleSpearmansRankCorrelationCoefficientEvaluator.cs" /> 86 91 <Compile Include="DefaultModelAnalyzerOperators.cs" /> 87 92 <Compile Include="Matrix.cs" /> -
trunk/sources/HeuristicLab.Modeling/3.2/ModelingResult.cs
r2379 r2428 43 43 TestCoefficientOfDetermination, 44 44 45 TrainingPearsonsCorrelationCoefficient, 46 ValidationPearsonCorrelationCoefficient, 47 TestPearsonCorrelationCoefficient, 48 49 TrainingStablePearsonsCorrelationCoefficient, 50 ValidationStablePearsonCorrelationCoefficient, 51 TestStablePearsonCorrelationCoefficient, 52 53 TrainingSpearmansRankCorrelationCoefficient, 54 ValidationSpearmansRankCorrelationCoefficient, 55 TestSpearmansRankCorrelationCoefficient, 56 45 57 TrainingVarianceAccountedFor, 46 58 ValidationVarianceAccountedFor, -
trunk/sources/HeuristicLab.Modeling/3.2/ModelingResultCalculators.cs
r2397 r2428 59 59 } 60 60 }, 61 { typeof(SimplePearsonCorrelationCoefficientEvaluator), 62 new ModelingResult[] { 63 ModelingResult.TrainingPearsonsCorrelationCoefficient, 64 ModelingResult.ValidationPearsonCorrlationCoefficent, 65 ModelingResult.TestPearsonCorrelationCoefficient 66 } 67 }, 68 { typeof(SimpleSpearmansRankCorrelationCoefficientEvaluator), 69 new ModelingResult[] { 70 ModelingResult.TrainingSpearmansRankCorrelationCoefficient, 71 ModelingResult.ValidationSpearmansRankCorrelationCoefficient, 72 ModelingResult.TestSpearmansRankCorrelationCoefficient 73 } 74 }, 61 75 { typeof(SimpleVarianceAccountedForEvaluator), 62 76 new ModelingResult[] { … … 148 162 RegressionModelingResults[ModelingResult.ValidationCoefficientOfDetermination] = SimpleR2Evaluator.Calculate; 149 163 RegressionModelingResults[ModelingResult.TestCoefficientOfDetermination] = SimpleR2Evaluator.Calculate; 164 165 //Pearson Correlation Coefficient 166 RegressionModelingResults[ModelingResult.TrainingPearsonsCorrelationCoefficient] = SimplePearsonCorrelationCoefficientEvaluator.Calculate; 167 RegressionModelingResults[ModelingResult.ValidationPearsonCorrelationCoefficient] = SimplePearsonCorrelationCoefficientEvaluator.Calculate; 168 RegressionModelingResults[ModelingResult.TestPearsonCorrelationCoefficient] = SimplePearsonCorrelationCoefficientEvaluator.Calculate; 169 170 //Stable Pearson Correlation Coefficient 171 RegressionModelingResults[ModelingResult.TrainingStablePearsonsCorrelationCoefficient] = SimpleStableCorrelationCoefficientEvaluator.Calculate; 172 RegressionModelingResults[ModelingResult.ValidationStablePearsonCorrelationCoefficient] = SimpleStableCorrelationCoefficientEvaluator.Calculate; 173 RegressionModelingResults[ModelingResult.TestStablePearsonCorrelationCoefficient] = SimpleStableCorrelationCoefficientEvaluator.Calculate; 174 175 //Spearman's rank correlation coefficient 176 RegressionModelingResults[ModelingResult.TrainingSpearmansRankCorrelationCoefficient] = SimpleSpearmansRankCorrelationCoefficientEvaluator.Calculate; 177 RegressionModelingResults[ModelingResult.ValidationSpearmansRankCorrelationCoefficient] = SimpleSpearmansRankCorrelationCoefficientEvaluator.Calculate; 178 RegressionModelingResults[ModelingResult.TestSpearmansRankCorrelationCoefficient] = SimpleSpearmansRankCorrelationCoefficientEvaluator.Calculate; 150 179 151 180 //Variance accounted for -
trunk/sources/HeuristicLab.Modeling/3.2/SimpleR2Evaluator.cs
r2357 r2428 48 48 double target = values[i, ORIGINAL_INDEX]; 49 49 if (!double.IsNaN(target) && !double.IsInfinity(target)) { 50 target = target - targetMean; 51 target = target * target; 52 targetDeviationTotalSumOfSquares += target; 50 double targetDiff = target - targetMean; 51 targetDeviationTotalSumOfSquares += targetDiff * targetDiff; 53 52 } 54 53 }
Note: See TracChangeset
for help on using the changeset viewer.