Changeset 14843 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkRegression.cs
- Timestamp:
- 04/11/17 15:55:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkRegression.cs
r14523 r14843 185 185 IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables; 186 186 IEnumerable<int> rows = problemData.TrainingIndices; 187 double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset,allowedInputVariables.Concat(new string[] { targetVariable }), rows);187 double[,] inputMatrix = dataset.ToArray(allowedInputVariables.Concat(new string[] { targetVariable }), rows); 188 188 if (inputMatrix.Cast<double>().Any(x => double.IsNaN(x) || double.IsInfinity(x))) 189 189 throw new NotSupportedException("Neural network regression does not support NaN or infinity values in the input dataset.");
Note: See TracChangeset
for help on using the changeset viewer.