Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/06/10 21:38:31 (14 years ago)
Author:
mkommend
Message:

Adapted CrossValidation to use ISingleObjectiveDataAnalysisProblem (ticket #1199).

Location:
branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classification/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classification/3.3/ProblemBase/Problem.cs

    r4323 r4563  
    5151      Parameters.Add(new ValueParameter<T>(EvaluatorParameterName, "The operator used to evaluate a solution."));
    5252      Parameters.Add(new ValueParameter<U>(SolutionCreateParameterName, "The operator to create a solution."));
    53       RegisterParameterEventHandlers();
     53      RegisterEventHandlers();
    5454    }
    5555
    5656    [StorableHook(HookType.AfterDeserialization)]
    5757    private void AfterDeserialization() {
    58       RegisterParameterEventHandlers();
     58      RegisterEventHandlers();
    5959    }
    6060
     
    6262      Problem<T, U> clone = (Problem<T, U>)base.Clone(cloner);
    6363      clone.operators = new ItemCollection<IOperator>(operators.Select(x => (IOperator)cloner.Clone(x)));
    64       clone.RegisterParameterEventHandlers();
     64      clone.RegisterEventHandlers();
    6565      return clone;
    6666    }
    6767
    68     private void RegisterParameterEventHandlers() {
     68    private void RegisterEventHandlers() {
    6969      Operators.ItemsAdded += new CollectionItemsChangedEventHandler<IOperator>(Operators_Changed);
    7070      Operators.ItemsRemoved += new CollectionItemsChangedEventHandler<IOperator>(Operators_Changed);
     
    7777    #region properties
    7878    private ItemCollection<IOperator> operators;
    79     [Storable]
     79    [Storable(Name = "Operators")]
    8080    private IEnumerable<IOperator> StorableOperators {
    8181      get { return operators; }
  • branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classification/3.3/SingleObjectiveClassificationProblem.cs

    r4536 r4563  
    3030  [Item("Classification Problem", "Represents a classfication problem.")]
    3131  [StorableClass]
    32   public abstract class SingleObjectiveClassificationProblem<T, U> : SingleObjectiveProblem<T, U>, IDataAnalysisProblem
     32  public abstract class SingleObjectiveClassificationProblem<T, U> : SingleObjectiveProblem<T, U>, ISingleObjectiveDataAnalysisProblem
    3333    where T : class, ISingleObjectiveEvaluator
    3434    where U : class, ISolutionCreator {
Note: See TracChangeset for help on using the changeset viewer.