Changeset 11571 for branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour
- Timestamp:
- 11/24/14 15:16:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
r11171 r11571 96 96 this.classValues = (double[])original.classValues.Clone(); 97 97 } 98 public NearestNeighbourModel( Dataset dataset, IEnumerable<int> rows, int k, string targetVariable, IEnumerable<string> allowedInputVariables, double[] classValues = null) {98 public NearestNeighbourModel(IDataset dataset, IEnumerable<int> rows, int k, string targetVariable, IEnumerable<string> allowedInputVariables, double[] classValues = null) { 99 99 Name = ItemName; 100 100 Description = ItemDescription; … … 135 135 } 136 136 137 public IEnumerable<double> GetEstimatedValues( Dataset dataset, IEnumerable<int> rows) {137 public IEnumerable<double> GetEstimatedValues(IDataset dataset, IEnumerable<int> rows) { 138 138 double[,] inputData = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables, rows); 139 139 … … 163 163 } 164 164 165 public IEnumerable<double> GetEstimatedClassValues( Dataset dataset, IEnumerable<int> rows) {165 public IEnumerable<double> GetEstimatedClassValues(IDataset dataset, IEnumerable<int> rows) { 166 166 if (classValues == null) throw new InvalidOperationException("No class values are defined."); 167 167 double[,] inputData = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables, rows);
Note: See TracChangeset
for help on using the changeset viewer.