Changeset 7810 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 05/14/12 16:20:06 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs
r7805 r7810 42 42 ProblemData = new ClassificationProblemData(); 43 43 } 44 45 #region Import & Export46 public new void Load(IClassificationProblemData data) {47 base.Load(data);48 }49 50 public IClassificationProblemData Export() {51 if (ProblemData is IClassificationProblemData) {52 return ProblemData;53 } else {54 ClassificationProblemData claData = new ClassificationProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable);55 return base.Export(claData);56 }57 }58 #endregion59 44 } 60 45 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs
r7770 r7810 92 92 93 93 #region Import & Export 94 p rotectedvoid Load(T data) {94 public void Load(T data) { 95 95 Name = data.Name; 96 96 Description = data.Description; … … 99 99 } 100 100 101 protected T Export(T data) { 102 data.Name = Name; 103 data.Description = Description; 104 data.TrainingPartition.Start = ProblemData.TrainingPartition.Start; 105 data.TrainingPartition.End = ProblemData.TrainingPartition.End; 106 data.TestPartition.Start = ProblemData.TestPartition.Start; 107 data.TestPartition.End = ProblemData.TestPartition.End; 108 return data; 101 public T Export() { 102 return ProblemData; 109 103 } 110 104 #endregion -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblem.cs
r7805 r7810 42 42 ProblemData = new RegressionProblemData(); 43 43 } 44 45 #region Import & Export46 public new void Load(IRegressionProblemData data) {47 base.Load(data);48 }49 50 public IRegressionProblemData Export() {51 if (ProblemData is IRegressionProblemData) {52 return ProblemData;53 } else {54 RegressionProblemData regData = new RegressionProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable);55 return base.Export(regData);56 }57 }58 #endregion59 44 } 60 45 }
Note: See TracChangeset
for help on using the changeset viewer.