2 writes to _simplexVertices
Microsoft.ML.Sweeper (2)
Algorithms\NelderMead.cs (2)
119
_simplexVertices
= new SortedList<IRunResult, float[]>(new SimplexVertexComparer());
355
_simplexVertices
= newSimplexVertices;
19 references to _simplexVertices
Microsoft.ML.Sweeper (19)
Algorithms\NelderMead.cs (19)
127
int numSweeps = Math.Min(maxSweeps, _dim + 1 -
_simplexVertices
.Count);
137
if (
_simplexVertices
.Count == _dim + 1)
140
if (!
_simplexVertices
.ContainsKey(run))
141
_simplexVertices
.Add(run, ParameterSetAsFloatArray(run.ParameterSet));
143
if (
_simplexVertices
.Count == _dim + 1)
147
if (
_simplexVertices
.Count < _dim + 1)
149
numSweeps = Math.Min(maxSweeps, _dim + 1 -
_simplexVertices
.Count);
301
Contracts.Assert(
_simplexVertices
.Count == _dim + 1);
303
_simplexVertices
.Remove(_worst.Key);
304
_simplexVertices
.Add(newVertexResult, newVertex);
311
_worst =
_simplexVertices
.ElementAt(0);
312
_secondWorst =
_simplexVertices
.ElementAt(1);
313
_best =
_simplexVertices
.ElementAt(
_simplexVertices
.Count - 1);
321
var simplexVertices =
_simplexVertices
.ToArray();
385
for (int i = 1; i <
_simplexVertices
.Count; i++)
386
VectorUtils.AddMult(
_simplexVertices
.ElementAt(i).Value, centroid, scale);
402
var sortedVertices =
_simplexVertices
.ToArray();
403
for (int i = 0; i <
_simplexVertices
.Count - 1; i++)