- Timestamp:
- 09/24/09 13:24:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/ModelingResultCalculators.cs
r2386 r2387 104 104 return ret.ToDictionary<KeyValuePair<ModelingResult, Func<double[,], double>>, ModelingResult, Func<double[,], double>>(x => x.Key, x => x.Value); 105 105 } 106 107 public static Func<double[,], double> GetModelingResultCalculator(ModelingResult modelingResult) { 108 if (RegressionModelingResults.ContainsKey(modelingResult)) 109 return RegressionModelingResults[modelingResult]; 110 else if (ClassificationModelingResults.ContainsKey(modelingResult)) 111 return ClassificationModelingResults[modelingResult]; 112 else if (TimeSeriesPrognosisModelingResults.ContainsKey(modelingResult)) 113 return TimeSeriesPrognosisModelingResults[modelingResult]; 114 else 115 throw new ArgumentException("Calculator for modeling reuslt " + modelingResult + " not defined."); 116 } 106 117 } 107 118 }
Note: See TracChangeset
for help on using the changeset viewer.