Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/11 12:04:53 (14 years ago)
Author:
mkommend
Message:

#1418: worked on data analysis problem representation.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/ClassificationProblem.cs

    r5561 r5577  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    2523using HeuristicLab.Common;
    2624using HeuristicLab.Core;
    27 using HeuristicLab.Data;
     25using HeuristicLab.Parameters;
    2826using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    29 using HeuristicLab.Optimization;
    30 using HeuristicLab.Parameters;
    3127
    3228namespace HeuristicLab.Problems.DataAnalysis {
    3329  [StorableClass]
    34   [Item("RegressionProblem", "")]
     30  [Item("ClassificationProblem", "")]
    3531  [Creatable]
    36   public class RegressionProblem : DataAnalysisProblem<IRegressionProblemData>,
    37     IRegressionProblem {
     32  public class ClassificationProblem : DataAnalysisProblem<IClassificationProblemData>,
     33    IClassificationProblem {
    3834    private const string ProblemDataParameterName = "ProblemData";
    39     #region properties
    40     public new IDataAnalysisEvaluator<IRegressionProblemData> Evaluator {
    41       get { throw new NotImplementedException(); }
    42     }
    43 
    44     public new IRegressionSolutionCreator SolutionCreator {
    45       get { throw new NotImplementedException(); }
    46     }
    47     IDataAnalysisSolutionCreator<IRegressionProblemData> IDataAnalysisProblem<IRegressionProblemData>.SolutionCreator {
    48       get { throw new NotImplementedException(); }
    49     }
    50     #endregion
    51 
    52     public RegressionProblem(RegressionProblem original, Cloner cloner)
     35    public ClassificationProblem(ClassificationProblem original, Cloner cloner)
    5336      : base(original, cloner) {
    5437      RegisterEventHandlers();
    5538    }
    5639    [StorableConstructor]
    57     public RegressionProblem(bool deserializing) : base(deserializing) { }
    58     public RegressionProblem()
     40    public ClassificationProblem(bool deserializing) : base(deserializing) { }
     41    public ClassificationProblem()
    5942      : base() {
    60       Parameters.Add(new ValueParameter<IRegressionProblemData>(ProblemDataParameterName, "", new RegressionProblemData()));
     43      Parameters.Add(new ValueParameter<IClassificationProblemData>(ProblemDataParameterName, "", new ClassificationProblemData()));
    6144      RegisterEventHandlers();
    6245    }
     
    6851
    6952    public override IDeepCloneable Clone(Cloner cloner) {
    70       return new RegressionProblem(this, cloner);
     53      return new ClassificationProblem(this, cloner);
    7154    }
    7255
     
    7760    #region event propagation
    7861    private void Value_Changed(object sender, EventArgs e) {
    79       OnReset();
     62      //OnReset();
    8063    }
    8164    #endregion
Note: See TracChangeset for help on using the changeset viewer.