Changeset 5501 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator.cs
- Timestamp:
- 02/17/11 01:19:27 (13 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective
- Files:
-
- 1 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator.cs
r5500 r5501 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 28 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic. Regression {30 [Item("Mean squared error evaluator", "Calculates the mean squared error of a symbolic regression solution.")]29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { 30 [Item("Mean squared error evaluator", "Calculates the mean squared error of a symbolic classification solution.")] 31 31 [StorableClass] 32 public class Symbolic RegressionSingleObjectiveMeanSquaredErrorEvaluator : SymbolicRegressionSingleObjectiveEvaluator {32 public class SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator : SymbolicClassificationSingleObjectiveEvaluator { 33 33 [StorableConstructor] 34 protected Symbolic RegressionSingleObjectiveMeanSquaredErrorEvaluator(bool deserializing) : base(deserializing) { }35 protected Symbolic RegressionSingleObjectiveMeanSquaredErrorEvaluator(SymbolicRegressionSingleObjectiveMeanSquaredErrorEvaluator original, Cloner cloner)34 protected SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator(bool deserializing) : base(deserializing) { } 35 protected SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator(SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator original, Cloner cloner) 36 36 : base(original, cloner) { 37 37 } 38 38 public override IDeepCloneable Clone(Cloner cloner) { 39 return new Symbolic RegressionSingleObjectiveMeanSquaredErrorEvaluator(this, cloner);39 return new SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator(this, cloner); 40 40 } 41 41 … … 47 47 } 48 48 49 public static double Calculate(ISymbolicDataAnalysisTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, I RegressionProblemData problemData, IEnumerable<int> rows) {49 public static double Calculate(ISymbolicDataAnalysisTreeInterpreter interpreter, ISymbolicExpressionTree solution, double lowerEstimationLimit, double upperEstimationLimit, IClassificationProblemData problemData, IEnumerable<int> rows) { 50 50 IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 51 51 IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows);
Note: See TracChangeset
for help on using the changeset viewer.