Changeset 14237 for branches/symbreg-factors-2650/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
- Timestamp:
- 08/05/16 14:25:28 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
r14185 r14237 104 104 this.allowedInputVariables = allowedInputVariables.ToArray(); 105 105 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 106 113 var inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, 107 114 allowedInputVariables.Concat(new string[] { targetVariable }),
Note: See TracChangeset
for help on using the changeset viewer.