Changeset 4190 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Evaluators/SymbolicRegressionMeanSquaredErrorEvaluator.cs
- Timestamp:
- 08/11/10 11:53:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Evaluators/SymbolicRegressionMeanSquaredErrorEvaluator.cs
r4128 r4190 34 34 [StorableClass] 35 35 public class SymbolicRegressionMeanSquaredErrorEvaluator : SingleObjectiveSymbolicRegressionEvaluator { 36 private const string UpperEstimationLimitParameterName = "UpperEstimationLimit";37 private const string LowerEstimationLimitParameterName = "LowerEstimationLimit";38 36 39 #region parameter properties40 public IValueLookupParameter<DoubleValue> UpperEstimationLimitParameter {41 get { return (IValueLookupParameter<DoubleValue>)Parameters[UpperEstimationLimitParameterName]; }42 }43 public IValueLookupParameter<DoubleValue> LowerEstimationLimitParameter {44 get { return (IValueLookupParameter<DoubleValue>)Parameters[LowerEstimationLimitParameterName]; }45 }46 #endregion47 #region properties48 public DoubleValue UpperEstimationLimit {49 get { return UpperEstimationLimitParameter.ActualValue; }50 }51 public DoubleValue LowerEstimationLimit {52 get { return LowerEstimationLimitParameter.ActualValue; }53 }54 #endregion55 37 public SymbolicRegressionMeanSquaredErrorEvaluator() 56 38 : base() { 57 Parameters.Add(new ValueLookupParameter<DoubleValue>(UpperEstimationLimitParameterName, "The upper limit that should be used as cut off value for the output values of symbolic expression trees."));58 Parameters.Add(new ValueLookupParameter<DoubleValue>(LowerEstimationLimitParameterName, "The lower limit that should be used as cut off value for the output values of symbolic expression trees."));59 39 } 60 40 61 p rotected override double Evaluate(ISymbolicExpressionTreeInterpreter interpreter, SymbolicExpressionTree solution, Dataset dataset, StringValuetargetVariable, IEnumerable<int> rows) {62 double mse = Calculate(interpreter, solution, LowerEstimationLimit.Value, UpperEstimationLimit.Value, dataset, targetVariable.Value, rows);41 public override double Evaluate(ISymbolicExpressionTreeInterpreter interpreter, SymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, Dataset dataset, string targetVariable, IEnumerable<int> rows) { 42 double mse = Calculate(interpreter, solution, lowerEstimationLimit, upperEstimationLimit, dataset, targetVariable, rows); 63 43 return mse; 64 44 }
Note: See TracChangeset
for help on using the changeset viewer.