10 instantiations of RunResult
Microsoft.ML.Sweeper (3)
SweepResultEvaluator.cs (2)
79
return new
RunResult
(parameterSet);
81
return new
RunResult
(parameterSet, result, _maximizing);
SynthConfigRunner.cs (1)
48
results.Add(new
RunResult
(sweeps[j], val, true));
Microsoft.ML.Sweeper.Tests (7)
TestSweeper.cs (7)
152
var result = new
RunResult
(tResult.ParameterSet, random.NextDouble(), true);
340
var result = new
RunResult
(paramWithId.ParameterSet, 0.42, true);
394
var result = new
RunResult
(paramWithId.ParameterSet, metrics[i], true);
476
var nextList = sweeper.ProposeSweeps(5, initialList.Select(p => new
RunResult
(p)));
585
results.Add(new
RunResult
(parameterSet, random.NextDouble(), true));
633
results.Add(new
RunResult
(parameterSet, random.NextDouble(), true));
684
results.Add(new
RunResult
(parameterSet, random.NextDouble(), true));
33 references to RunResult
Microsoft.ML.Sweeper (25)
Algorithms\KdoSweeper.cs (12)
138
var viableRuns = prevRuns.Cast<
RunResult
>().Where(run => run != null && run.HasMetricValue).Cast<IRunResult>().ToArray();
184
RunResult
parent = (
RunResult
)history[parentIndicies[i]];
346
return (from
RunResult
r in previousRuns where _randomParamSets.Contains(r.ParameterSet) select r.MetricValue).ToArray();
365
foreach (
RunResult
r in previousRuns)
379
previousRuns.Cast<
RunResult
>().Where(r => r.HasMetricValue).Max(r => r.MetricValue) :
380
previousRuns.Cast<
RunResult
>().Where(r => r.HasMetricValue).Min(r => r.MetricValue);
411
foreach (
RunResult
r in previousRuns)
428
SortedSet<
RunResult
> bestK = new SortedSet<
RunResult
>();
430
foreach (
RunResult
r in history)
432
RunResult
worst = bestK.Min();
Algorithms\SmacSweeper.cs (11)
99
foreach (
RunResult
run in previousRuns)
118
foreach (
RunResult
r in previousRuns)
195
RunResult
bestRun = (
RunResult
)previousRuns.Max();
196
RunResult
worstRun = (
RunResult
)previousRuns.Min();
382
SortedSet<
RunResult
> bestK = new SortedSet<
RunResult
>();
384
foreach (
RunResult
r in previousRuns)
386
RunResult
worst = bestK.Min();
397
foreach (
RunResult
r in bestK)
ISweeper.cs (2)
246
var
otherTyped = other as
RunResult
;
Microsoft.ML.Sweeper.Tests (8)
TestSweeper.cs (8)
105
var initialList = sweeper.ProposeSweeps(5, new List<
RunResult
>());
152
var
result = new RunResult(tResult.ParameterSet, random.NextDouble(), true);
260
var
result = new RunResult(task.CompletedResult().ParameterSet, random.NextDouble(), true);
340
var
result = new RunResult(paramWithId.ParameterSet, 0.42, true);
394
var
result = new RunResult(paramWithId.ParameterSet, metrics[i], true);
442
var initialList = sweeper.ProposeSweeps(5, new List<
RunResult
>());
560
var sweeps = sweeper.ProposeSweeps(5, new List<
RunResult
>());
608
var sweeps = sweeper.ProposeSweeps(5, new List<
RunResult
>());