6 writes to _nGridPoints
Microsoft.ML.Sweeper (6)
Algorithms\Grid.cs (6)
123
_nGridPoints
= 1;
126
_nGridPoints
*= sweptParameter.Count;
128
_nGridPoints
= 0;
140
_nGridPoints
= 1;
143
_nGridPoints
*= sweptParameter.Count;
145
_nGridPoints
= 0;
14 references to _nGridPoints
Microsoft.ML.Sweeper (14)
Algorithms\Grid.cs (14)
127
if (
_nGridPoints
> options.MaxGridPoints)
130
if (
_nGridPoints
!= 0)
132
_permutation = Utils.GetRandomPermutation(Host.Rand,
_nGridPoints
);
133
_cache = new ParameterSet[
_nGridPoints
];
144
if (
_nGridPoints
> options.MaxGridPoints)
147
if (
_nGridPoints
!= 0)
149
_permutation = Utils.GetRandomPermutation(Host.Rand,
_nGridPoints
);
150
_cache = new ParameterSet[
_nGridPoints
];
156
if (
_nGridPoints
== 0)
163
int iPerm = (prevParamSets.Count - 1) %
_nGridPoints
;
169
iPerm = (iPerm + 1) %
_nGridPoints
;
172
if (tries++ >=
_nGridPoints
)
189
Contracts.Assert(0 <= combination && combination <
_nGridPoints
);
190
int div =
_nGridPoints
;