Changeset 5577 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/ClassificationProblem.cs
- Timestamp:
- 03/01/11 12:04:53 (14 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/ClassificationProblem.cs
r5561 r5577 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 23 using HeuristicLab.Common; 26 24 using HeuristicLab.Core; 27 using HeuristicLab. Data;25 using HeuristicLab.Parameters; 28 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Optimization;30 using HeuristicLab.Parameters;31 27 32 28 namespace HeuristicLab.Problems.DataAnalysis { 33 29 [StorableClass] 34 [Item(" RegressionProblem", "")]30 [Item("ClassificationProblem", "")] 35 31 [Creatable] 36 public class RegressionProblem : DataAnalysisProblem<IRegressionProblemData>,37 I RegressionProblem {32 public class ClassificationProblem : DataAnalysisProblem<IClassificationProblemData>, 33 IClassificationProblem { 38 34 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) 53 36 : base(original, cloner) { 54 37 RegisterEventHandlers(); 55 38 } 56 39 [StorableConstructor] 57 public RegressionProblem(bool deserializing) : base(deserializing) { }58 public RegressionProblem()40 public ClassificationProblem(bool deserializing) : base(deserializing) { } 41 public ClassificationProblem() 59 42 : base() { 60 Parameters.Add(new ValueParameter<I RegressionProblemData>(ProblemDataParameterName, "", new RegressionProblemData()));43 Parameters.Add(new ValueParameter<IClassificationProblemData>(ProblemDataParameterName, "", new ClassificationProblemData())); 61 44 RegisterEventHandlers(); 62 45 } … … 68 51 69 52 public override IDeepCloneable Clone(Cloner cloner) { 70 return new RegressionProblem(this, cloner);53 return new ClassificationProblem(this, cloner); 71 54 } 72 55 … … 77 60 #region event propagation 78 61 private void Value_Changed(object sender, EventArgs e) { 79 OnReset();62 //OnReset(); 80 63 } 81 64 #endregion
Note: See TracChangeset
for help on using the changeset viewer.