protected override void Initialize(CancellationToken cancellationToken) { base.Initialize(cancellationToken); var random = new MersenneTwister(); if (SetSeedRandomly) { Seed = RandomSeedGenerator.GetSeed(); } random.Reset(Seed); stateScope = InitializeScope(random, Problem.ProblemData, Pruning, MinimalNodeSize, LeafModel, Splitter, GenerateRules, UseHoldout, HoldoutSize); stateScope.Variables.Add(new Variable("Algorithm", this)); Results.AddOrUpdateResult("StateScope", stateScope); }