Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/30/18 17:28:46 (6 years ago)
Author:
fholzing
Message:

#2883: Removed backwardscompatibility and changed the level of the decision if surrogate or not into the algorithm (so one level up)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2883_GBTModelStorage/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs

    r15678 r15679  
    286286      // produce solution
    287287      if (CreateSolution == ModelStorage.Parameter || CreateSolution == ModelStorage.Complete) {
    288         IRegressionModel model = null;
     288        IRegressionModel model = state.GetModel();
    289289
    290290        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;
     291          model = new GradientBoostedTreesModelSurrogate(problemData, (uint)Seed, lossFunction, Iterations, MaxSize, R, M, Nu, (GradientBoostedTreesModel)model);
    296292        }
    297293
Note: See TracChangeset for help on using the changeset viewer.