Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/05/12 11:58:17 (12 years ago)
Author:
mkommend
Message:

#1081: Merged trunk changes and fixed compilation errors due to the merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs

    r7738 r8742  
    4444
    4545      executionState = ExecutionState.Stopped;
    46       runs = new RunCollection();
     46      runs = new RunCollection { AlgorithmName = name };
    4747      runsCounter = 0;
    4848
     
    246246    #endregion
    247247
     248    protected override void OnNameChanged() {
     249      base.OnNameChanged();
     250      Runs.AlgorithmName = Name;
     251    }
     252
    248253    public void Prepare() {
    249254      if (ExecutionState == ExecutionState.Started)
     
    447452        problemDataClone.TestPartition.Start = SamplesStart.Value; problemDataClone.TestPartition.End = SamplesEnd.Value;
    448453        // clone models
    449         var ensembleSolution = new ClassificationEnsembleSolution(
    450           solutions.Value.Select(x => cloner.Clone(x.Model)),
    451           problemDataClone,
    452           solutions.Value.Select(x => cloner.Clone(x.ProblemData.TrainingPartition)),
    453           solutions.Value.Select(x => cloner.Clone(x.ProblemData.TestPartition)));
     454        var ensembleSolution = new ClassificationEnsembleSolution(problemDataClone);
     455        ensembleSolution.AddClassificationSolutions(solutions.Value);
    454456
    455457        aggregatedResults.Add(new Result(solutions.Key + " (ensemble)", ensembleSolution));
Note: See TracChangeset for help on using the changeset viewer.