Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/12 15:21:28 (13 years ago)
Author:
sforsten
Message:

#1784: changes have been applied, according to the review comments of mkommend

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  
    3030  [Creatable("Problems")]
    3131  public class ClassificationProblem : DataAnalysisProblem<IClassificationProblemData>, IClassificationProblem, IStorableContent,
    32     IProblemInstanceConsumer<ClassificationProblemData>, IProblemInstanceExporter<ClassificationProblemData> {
     32    IProblemInstanceConsumer<IClassificationProblemData>, IProblemInstanceExporter<IClassificationProblemData> {
    3333    public string Filename { get; set; }
    3434
     
    4444
    4545    #region Import & Export
    46     public void Load(ClassificationProblemData data) {
     46    public new void Load(IClassificationProblemData data) {
    4747      base.Load(data);
    4848    }
    4949
    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;
    5353      } else {
    5454        ClassificationProblemData claData = new ClassificationProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable);
    55         return (ClassificationProblemData)base.Export(claData);
     55        return base.Export(claData);
    5656      }
    5757    }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblem.cs

    r7770 r7805  
    3030  [Creatable("Problems")]
    3131  public class RegressionProblem : DataAnalysisProblem<IRegressionProblemData>, IRegressionProblem, IStorableContent,
    32     IProblemInstanceConsumer<RegressionProblemData>, IProblemInstanceExporter<RegressionProblemData> {
     32    IProblemInstanceConsumer<IRegressionProblemData>, IProblemInstanceExporter<IRegressionProblemData> {
    3333    public string Filename { get; set; }
    3434
     
    4444
    4545    #region Import & Export
    46     public void Load(RegressionProblemData data) {
     46    public new void Load(IRegressionProblemData data) {
    4747      base.Load(data);
    4848    }
    4949
    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;
    5353      } else {
    5454        RegressionProblemData regData = new RegressionProblemData(ProblemData.Dataset, ProblemData.AllowedInputVariables, ProblemData.TargetVariable);
    55         return (RegressionProblemData)base.Export(regData);
     55        return base.Export(regData);
    5656      }
    5757    }
Note: See TracChangeset for help on using the changeset viewer.