Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/16 17:36:38 (9 years ago)
Author:
gkronber
Message:

#1795: fixed a problem for datasets with variables that don't have double type

File:
1 edited

Legend:

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

    r13703 r13707  
    231231      var problemData = Problem.ProblemData;
    232232      var targetVarName = Problem.ProblemData.TargetVariable;
     233      var activeVariables = problemData.AllowedInputVariables.Concat(new string[] { problemData.TargetVariable });
    233234      var modifiableDataset = new ModifiableDataset(
    234         problemData.Dataset.VariableNames,
    235         problemData.Dataset.VariableNames.Select(v => problemData.Dataset.GetDoubleValues(v).ToList()));
     235        activeVariables,
     236        activeVariables.Select(v => problemData.Dataset.GetDoubleValues(v).ToList()));
    236237
    237238      var trainingRows = problemData.TrainingIndices;
Note: See TracChangeset for help on using the changeset viewer.