1 write to _dim
Microsoft.ML.Sweeper (1)
Algorithms\NelderMead.cs (1)
116
_dim
= _sweepParameters.Count;
12 references to _dim
Microsoft.ML.Sweeper (12)
Algorithms\NelderMead.cs (12)
117
env.CheckUserArg(
_dim
> 1, nameof(options.SweptParameters), "Nelder-Mead sweeper needs at least two parameters to sweep over.");
127
int numSweeps = Math.Min(maxSweeps,
_dim
+ 1 - _simplexVertices.Count);
137
if (_simplexVertices.Count ==
_dim
+ 1)
143
if (_simplexVertices.Count ==
_dim
+ 1)
147
if (_simplexVertices.Count <
_dim
+ 1)
149
numSweeps = Math.Min(maxSweeps,
_dim
+ 1 - _simplexVertices.Count);
282
Contracts.Assert(_pendingSweeps.Count + _pendingSweepsNotSubmitted.Count ==
_dim
);
283
if (_pendingSweeps.Count <
_dim
)
301
Contracts.Assert(_simplexVertices.Count ==
_dim
+ 1);
383
var centroid = new float[
_dim
];
384
float scale = (float)1 /
_dim
;
401
int numPoints = Math.Min(maxSweeps,
_dim
);