Changeset 12509 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
- Timestamp:
- 06/25/15 13:46:24 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
r12012 r12509 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.