Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6636


Ignore:
Timestamp:
08/04/11 17:57:09 (13 years ago)
Author:
mkommend
Message:

#1552: Corrected event registration in cross validation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs

    r6566 r6636  
    446446        // clone models
    447447        var ensembleSolution = new ClassificationEnsembleSolution(
    448           solutions.Value.Select(x => cloner.Clone(x.Model)), 
     448          solutions.Value.Select(x => cloner.Clone(x.Model)),
    449449          problemDataClone,
    450450          solutions.Value.Select(x => cloner.Clone(x.ProblemData.TrainingPartition)),
     
    543543        throw new ArgumentException("A cross validation algorithm can only contain DataAnalysisProblems.");
    544544      }
     545      algorithm.Problem.Reset += (x,y) => OnProblemChanged();
    545546      problem = (IDataAnalysisProblem)algorithm.Problem;
    546547      OnProblemChanged();
     
    553554      SamplesStart.Value = 0;
    554555      if (Problem != null) {
    555         Problem.ProblemDataChanged += (object sender, EventArgs e) => OnProblemChanged();
    556556        SamplesEnd.Value = Problem.ProblemData.Dataset.Rows;
    557557
Note: See TracChangeset for help on using the changeset viewer.