Changeset 13699 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis
- Timestamp:
- 03/14/16 17:50:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GBM/GradientBoostingRegressionAlgorithm.cs
r13653 r13699 26 26 using System.Threading; 27 27 using HeuristicLab.Analysis; 28 using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm;29 28 using HeuristicLab.Common; 30 29 using HeuristicLab.Core; … … 316 315 } 317 316 // just produce an ensemble solution for now (TODO: correct scaling or linear regression for ensemble model weights) 318 Results.Add(new Result("EnsembleSolution", new RegressionEnsembleSolution(models, (IRegressionProblemData)problemData.Clone()))); 317 318 var ensembleModel = new RegressionEnsembleModel(models); 319 var ensembleSolution = ensembleModel.CreateRegressionSolution((IRegressionProblemData)problemData.Clone()); 320 Results.Add(new Result("EnsembleSolution", ensembleSolution)); 319 321 } 320 } finally { 322 } 323 finally { 321 324 // reset everything 322 325 alg.Prepare(true); … … 432 435 model = sol.Model; 433 436 } 434 } finally { 437 } 438 finally { 435 439 alg.ExceptionOccurred -= handler; 436 440 alg.Stopped -= handler2;
Note: See TracChangeset
for help on using the changeset viewer.