2 writes to Host
Microsoft.ML.Sweeper (2)
Algorithms\Grid.cs (2)
47Host = env.Register(name); 60Host = env.Register(name);
9 references to Host
Microsoft.ML.Sweeper (9)
Algorithms\Grid.cs (8)
48Host.CheckValue(options, nameof(options)); 49Host.CheckNonEmpty(options.SweptParameters, nameof(options.SweptParameters)); 53SweepParameters = options.SweptParameters.Select(p => p.CreateComponent(Host)).ToArray(); 61Host.CheckValue(options, nameof(options)); 62Host.CheckValue(sweepParameters, nameof(sweepParameters)); 132_permutation = Utils.GetRandomPermutation(Host.Rand, _nGridPoints); 149_permutation = Utils.GetRandomPermutation(Host.Rand, _nGridPoints); 184return new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter[Host.Rand.Next(sweepParameter.Count)]));
Algorithms\Random.cs (1)
34return new ParameterSet(SweepParameters.Select(sweepParameter => sweepParameter.CreateFromNormalized(Host.Rand.NextDouble())));