Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17138


Ignore:
Timestamp:
07/15/19 16:19:21 (5 years ago)
Author:
pfleck
Message:

#2952 Fixed triggering model recalculation when cloning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2952_RF-ModelStorage/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest/RandomForestModelSurrogate.cs

    r17050 r17138  
    9090    private RandomForestModelSurrogate(RandomForestModelSurrogate original, Cloner cloner) : base(original, cloner) {
    9191      IRandomForestModel clonedModel = null;
    92       if (original.ActualModel != null) clonedModel = cloner.Clone(original.ActualModel);
     92      if (original.actualModel.IsValueCreated) clonedModel = cloner.Clone(original.ActualModel);
    9393      actualModel = new Lazy<IRandomForestModel>(CreateLazyInitFunc(clonedModel)); // only capture clonedModel in the closure
    9494
Note: See TracChangeset for help on using the changeset viewer.