Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/05/16 14:25:28 (8 years ago)
Author:
gkronber
Message:

#2650: work in progress..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs

    r14185 r14237  
    104104      this.allowedInputVariables = allowedInputVariables.ToArray();
    105105
     106      // check input variables. Only double variables are allowed.
     107      var invalidInputs =
     108        allowedInputVariables.Where(name => !dataset.VariableHasType<double>(name));
     109      if (invalidInputs.Any())
     110        throw new NotSupportedException("Gradient tree boosting only supports real-valued variables. Unsupported inputs: " + string.Join(", ", invalidInputs));
     111
     112
    106113      var inputMatrix = AlglibUtil.PrepareInputMatrix(dataset,
    107114                                   allowedInputVariables.Concat(new string[] { targetVariable }),
Note: See TracChangeset for help on using the changeset viewer.