- Timestamp:
- 08/05/16 17:34:16 (8 years ago)
- Location:
- branches/symbreg-factors-2650/HeuristicLab.Algorithms.DataAnalysis/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Algorithms.DataAnalysis/3.4/Nca/ModelCreation/NcaModelCreator.cs
r14237 r14238 20 20 #endregion 21 21 22 using System;23 22 using System.Linq; 24 23 using HeuristicLab.Common; -
branches/symbreg-factors-2650/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
r14237 r14238 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 113 106 var inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, 114 107 allowedInputVariables.Concat(new string[] { targetVariable }),
Note: See TracChangeset
for help on using the changeset viewer.