Changeset 15678 for branches/2883_GBTModelStorage/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs
- Timestamp:
- 01/30/18 16:39:01 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2883_GBTModelStorage/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs
r15675 r15678 21 21 #endregion 22 22 23 using System; 23 24 using System.Linq; 24 25 using System.Threading; … … 284 285 285 286 // produce solution 286 if (CreateSolution == ModelStorage.Parameter) { 287 var model = state.GetModel(); 287 if (CreateSolution == ModelStorage.Parameter || CreateSolution == ModelStorage.Complete) { 288 IRegressionModel model = null; 289 290 if (CreateSolution == ModelStorage.Parameter) { 291 model = state.GetModel(); 292 } else if (CreateSolution == ModelStorage.Complete) { 293 //If "Complete", a deep-copy is required, so no lazy lists 294 model = state.GetModel(false); 295 (model as GradientBoostedTreesModel).IsCompatibilityLoaded = true; 296 } 288 297 289 298 // for logistic regression we produce a classification solution … … 307 316 Results.Add(new Result("Solution", new GradientBoostedTreesSolution(model, problemData))); 308 317 } 318 } else if (CreateSolution == ModelStorage.Quality) { 319 //Do nothing 320 } else { 321 throw new NotImplementedException("Selected parameter for CreateSolution isn't implemented yet"); 309 322 } 310 323 }
Note: See TracChangeset
for help on using the changeset viewer.