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