Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/12 16:20:06 (13 years ago)
Author:
sforsten
Message:

#1784:

  • removed obsolete import & export methods from RegressionProblem and ClassificationProblem, because they are implemented in the base classes
  • removed unnecessary references in Problems.QuadraticAssignment.Views
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  
    4242      ProblemData = new ClassificationProblemData();
    4343    }
    44 
    45     #region Import & Export
    46     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     #endregion
    5944  }
    6045}
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs

    r7770 r7810  
    9292
    9393    #region Import & Export
    94     protected void Load(T data) {
     94    public void Load(T data) {
    9595      Name = data.Name;
    9696      Description = data.Description;
     
    9999    }
    100100
    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;
    109103    }
    110104    #endregion
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblem.cs

    r7805 r7810  
    4242      ProblemData = new RegressionProblemData();
    4343    }
    44 
    45     #region Import & Export
    46     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     #endregion
    5944  }
    6045}
Note: See TracChangeset for help on using the changeset viewer.