Changeset 7805 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Timestamp:
- 05/14/12 15:21:28 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectiveProblem.cs
r7758 r7805 25 25 using HeuristicLab.Parameters; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Problems.Instances; 27 28 28 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 30 31 [StorableClass] 31 32 [Creatable("Problems")] 32 public class SymbolicClassificationMultiObjectiveProblem : SymbolicDataAnalysisMultiObjectiveProblem<IClassificationProblemData, ISymbolicClassificationMultiObjectiveEvaluator, ISymbolicDataAnalysisSolutionCreator>, IClassificationProblem { 33 public class SymbolicClassificationMultiObjectiveProblem : SymbolicDataAnalysisMultiObjectiveProblem<IClassificationProblemData, ISymbolicClassificationMultiObjectiveEvaluator, ISymbolicDataAnalysisSolutionCreator>, IClassificationProblem, 34 IProblemInstanceConsumer<IClassificationProblemData>, IProblemInstanceExporter<IClassificationProblemData> { 33 35 private const double PunishmentFactor = 10; 34 36 private const int InitialMaximumTreeDepth = 8; … … 107 109 } 108 110 } 111 112 #region Import & Export 113 public new void Load(IClassificationProblemData data) { 114 base.Load(data); 115 } 116 117 public IClassificationProblemData Export() { 118 if (ProblemData is IClassificationProblemData) { 119 return ProblemData; 120 } else { 121 ClassificationProblemData claData = new ClassificationProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable); 122 return base.Export(claData); 123 } 124 } 125 #endregion 109 126 } 110 127 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
r7770 r7805 31 31 [Creatable("Problems")] 32 32 public class SymbolicClassificationSingleObjectiveProblem : SymbolicDataAnalysisSingleObjectiveProblem<IClassificationProblemData, ISymbolicClassificationSingleObjectiveEvaluator, ISymbolicDataAnalysisSolutionCreator>, IClassificationProblem, 33 IProblemInstanceConsumer< ClassificationProblemData>, IProblemInstanceExporter<ClassificationProblemData> {33 IProblemInstanceConsumer<IClassificationProblemData>, IProblemInstanceExporter<IClassificationProblemData> { 34 34 private const double PunishmentFactor = 10; 35 35 private const int InitialMaximumTreeDepth = 8; … … 112 112 113 113 #region Import & Export 114 public void Load(ClassificationProblemData data) {114 public new void Load(IClassificationProblemData data) { 115 115 base.Load(data); 116 116 } 117 117 118 public ClassificationProblemData Export() {119 if (ProblemData is ClassificationProblemData) {120 return (ClassificationProblemData)ProblemData;118 public IClassificationProblemData Export() { 119 if (ProblemData is IClassificationProblemData) { 120 return ProblemData; 121 121 } else { 122 122 ClassificationProblemData claData = new ClassificationProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable); 123 return (ClassificationProblemData)base.Export(claData);123 return base.Export(claData); 124 124 } 125 125 }
Note: See TracChangeset
for help on using the changeset viewer.