Changes between Initial Version and Version 1 of Ticket #3030


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3030 – Description

    initial v1  
    66IRandomForestModel clonedModel = null;
    77if (original.actualModel.IsValueCreated) clonedModel = cloner.Clone(original.ActualModel);
    8   actualModel = new Lazy<IRandomForestModel>(CreateLazyInitFunc(clonedModel));
     8  actualModel = new Lazy<IRandomForestModel>(() => clonedModel ?? RecalculateModel());
    99}}}
    1010In 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.