Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/17/15 16:11:47 (9 years ago)
Author:
gkronber
Message:

#2450: introduced surrogate for GBT-models which recalculates the actual model on demand to improve persistence of GBT solutions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs

    r12632 r12868  
    233233      // produce solution
    234234      if (CreateSolution) {
     235        var surrogateModel = new GradientBoostedTreesModelSurrogate(problemData, (uint)Seed, lossFunction.ToString(),
     236          Iterations, MaxSize, R, M, Nu, state.GetModel());
     237
    235238        // for logistic regression we produce a classification solution
    236239        if (lossFunction is LogisticRegressionLoss) {
    237           var model = new DiscriminantFunctionClassificationModel(state.GetModel(),
     240          var model = new DiscriminantFunctionClassificationModel(surrogateModel,
    238241            new AccuracyMaximizationThresholdCalculator());
    239242          var classificationProblemData = new ClassificationProblemData(problemData.Dataset,
     
    245248        } else {
    246249          // otherwise we produce a regression solution
    247           Results.Add(new Result("Solution", new RegressionSolution(state.GetModel(), problemData)));
     250          Results.Add(new Result("Solution", new RegressionSolution(surrogateModel, problemData)));
    248251        }
    249252      }
Note: See TracChangeset for help on using the changeset viewer.