Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/06/14 13:13:22 (10 years ago)
Author:
mkommend
Message:

#2246: Merged r11382 into stable.

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs

    r11170 r11414  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Linq;
    2425using HeuristicLab.Common;
    2526using HeuristicLab.Problems.DataAnalysis;
     
    5859
    5960      SetTrainingAndTestPartition(problemData);
     61      // set the input variables to the correct checked state
     62      var inputVariables = problemData.InputVariables.ToDictionary(x => x.Value, x => x);
     63      foreach (var variable in oldProblemData.InputVariables) {
     64        bool @checked = oldProblemData.InputVariables.ItemChecked(variable);
     65        problemData.InputVariables.SetItemCheckedState(inputVariables[variable.Value], @checked);
     66      }
    6067
    6168      return problemData;
Note: See TracChangeset for help on using the changeset viewer.