- Timestamp:
- 07/10/15 11:51:51 (9 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Algorithms.DataAnalysis (added) merged: 11571,12031,12505 /trunk/sources/HeuristicLab.Algorithms.DataAnalysis merged: 12509,12524
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessModel.cs
r12009 r12702 117 117 this.x = original.x; 118 118 } 119 public GaussianProcessModel( Dataset ds, string targetVariable, IEnumerable<string> allowedInputVariables, IEnumerable<int> rows,119 public GaussianProcessModel(IDataset ds, string targetVariable, IEnumerable<string> allowedInputVariables, IEnumerable<int> rows, 120 120 IEnumerable<double> hyp, IMeanFunction meanFunction, ICovarianceFunction covarianceFunction) 121 121 : base() { … … 141 141 } 142 142 143 private void CalculateModel( Dataset ds, IEnumerable<int> rows) {143 private void CalculateModel(IDataset ds, IEnumerable<int> rows) { 144 144 inputScaling = new Scaling(ds, allowedInputVariables, rows); 145 145 x = AlglibUtil.PrepareAndScaleInputMatrix(ds, allowedInputVariables, rows, inputScaling); … … 245 245 246 246 #region IRegressionModel Members 247 public IEnumerable<double> GetEstimatedValues( Dataset dataset, IEnumerable<int> rows) {247 public IEnumerable<double> GetEstimatedValues(IDataset dataset, IEnumerable<int> rows) { 248 248 return GetEstimatedValuesHelper(dataset, rows); 249 249 } … … 257 257 258 258 259 private IEnumerable<double> GetEstimatedValuesHelper( Dataset dataset, IEnumerable<int> rows) {259 private IEnumerable<double> GetEstimatedValuesHelper(IDataset dataset, IEnumerable<int> rows) { 260 260 var newX = AlglibUtil.PrepareAndScaleInputMatrix(dataset, allowedInputVariables, rows, inputScaling); 261 261 int newN = newX.GetLength(0); … … 277 277 } 278 278 279 public IEnumerable<double> GetEstimatedVariance( Dataset dataset, IEnumerable<int> rows) {279 public IEnumerable<double> GetEstimatedVariance(IDataset dataset, IEnumerable<int> rows) { 280 280 var newX = AlglibUtil.PrepareAndScaleInputMatrix(dataset, allowedInputVariables, rows, inputScaling); 281 281 int newN = newX.GetLength(0);
Note: See TracChangeset
for help on using the changeset viewer.