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)
117env.CheckUserArg(_dim > 1, nameof(options.SweptParameters), "Nelder-Mead sweeper needs at least two parameters to sweep over."); 127int numSweeps = Math.Min(maxSweeps, _dim + 1 - _simplexVertices.Count); 137if (_simplexVertices.Count == _dim + 1) 143if (_simplexVertices.Count == _dim + 1) 147if (_simplexVertices.Count < _dim + 1) 149numSweeps = Math.Min(maxSweeps, _dim + 1 - _simplexVertices.Count); 282Contracts.Assert(_pendingSweeps.Count + _pendingSweepsNotSubmitted.Count == _dim); 283if (_pendingSweeps.Count < _dim) 301Contracts.Assert(_simplexVertices.Count == _dim + 1); 383var centroid = new float[_dim]; 384float scale = (float)1 / _dim; 401int numPoints = Math.Min(maxSweeps, _dim);