Changes between Version 1 and Version 2 of Ticket #3030


Ignore:
Timestamp:
09/26/19 12:51:51 (14 months ago)
Author:
pfleck
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3030 – Description

    v1 v2  
    55{{{
    66IRandomForestModel clonedModel = null;
    7 if (original.actualModel.IsValueCreated) clonedModel = cloner.Clone(original.ActualModel);
    8   actualModel = new Lazy<IRandomForestModel>(() => clonedModel ?? RecalculateModel());
     7if (original.actualModel.IsValueCreated)
     8  clonedModel = cloner.Clone(original.ActualModel);
     9actualModel = new Lazy<IRandomForestModel>(() => clonedModel ?? RecalculateModel());
    910}}}
    1011In case the cloning constructor is called immediately after creation of the surrogate Model, `IsValueCreated` is actually returning false since the Lazy object itself has not yet accessed its `Value` property.