Changes between Initial Version and Version 1 of Ticket #3030
- Timestamp:
- 09/26/19 12:51:15 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3030 – Description
initial v1 6 6 IRandomForestModel clonedModel = null; 7 7 if (original.actualModel.IsValueCreated) clonedModel = cloner.Clone(original.ActualModel); 8 actualModel = new Lazy<IRandomForestModel>( CreateLazyInitFunc(clonedModel));8 actualModel = new Lazy<IRandomForestModel>(() => clonedModel ?? RecalculateModel()); 9 9 }}} 10 10 In 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.