Changeset 7805 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 05/14/12 15:21:28 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs
r7770 r7805 30 30 [Creatable("Problems")] 31 31 public class ClassificationProblem : DataAnalysisProblem<IClassificationProblemData>, IClassificationProblem, IStorableContent, 32 IProblemInstanceConsumer< ClassificationProblemData>, IProblemInstanceExporter<ClassificationProblemData> {32 IProblemInstanceConsumer<IClassificationProblemData>, IProblemInstanceExporter<IClassificationProblemData> { 33 33 public string Filename { get; set; } 34 34 … … 44 44 45 45 #region Import & Export 46 public void Load(ClassificationProblemData data) {46 public new void Load(IClassificationProblemData data) { 47 47 base.Load(data); 48 48 } 49 49 50 public ClassificationProblemData Export() {51 if (ProblemData is ClassificationProblemData) {52 return (ClassificationProblemData)ProblemData;50 public IClassificationProblemData Export() { 51 if (ProblemData is IClassificationProblemData) { 52 return ProblemData; 53 53 } else { 54 54 ClassificationProblemData claData = new ClassificationProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable); 55 return (ClassificationProblemData)base.Export(claData);55 return base.Export(claData); 56 56 } 57 57 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblem.cs
r7770 r7805 30 30 [Creatable("Problems")] 31 31 public class RegressionProblem : DataAnalysisProblem<IRegressionProblemData>, IRegressionProblem, IStorableContent, 32 IProblemInstanceConsumer< RegressionProblemData>, IProblemInstanceExporter<RegressionProblemData> {32 IProblemInstanceConsumer<IRegressionProblemData>, IProblemInstanceExporter<IRegressionProblemData> { 33 33 public string Filename { get; set; } 34 34 … … 44 44 45 45 #region Import & Export 46 public void Load(RegressionProblemData data) {46 public new void Load(IRegressionProblemData data) { 47 47 base.Load(data); 48 48 } 49 49 50 public RegressionProblemData Export() {51 if (ProblemData is RegressionProblemData) {52 return (RegressionProblemData)ProblemData;50 public IRegressionProblemData Export() { 51 if (ProblemData is IRegressionProblemData) { 52 return ProblemData; 53 53 } else { 54 54 RegressionProblemData regData = new RegressionProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable); 55 return (RegressionProblemData)base.Export(regData);55 return base.Export(regData); 56 56 } 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.