1 interface inheriting from IRunResult
Microsoft.ML.Sweeper (1)
ISweeper.cs (1)
196
public interface IRunResult<T> :
IRunResult
75 references to IRunResult
Microsoft.ML.Sweeper (70)
Algorithms\Grid.cs (2)
68
public virtual ParameterSet[] ProposeSweeps(int maxSweeps, IEnumerable<
IRunResult
> previousRuns = null)
154
public override ParameterSet[] ProposeSweeps(int maxSweeps, IEnumerable<
IRunResult
> previousRuns = null)
Algorithms\KdoSweeper.cs (14)
109
public ParameterSet[] ProposeSweeps(int maxSweeps, IEnumerable<
IRunResult
> previousRuns = null)
112
var prevRuns = previousRuns?.ToArray() ?? new
IRunResult
[0];
138
var viableRuns = prevRuns.Cast<RunResult>().Where(run => run != null && run.HasMetricValue).Cast<
IRunResult
>().ToArray();
157
private ParameterSet[] GenerateCandidateConfigurations(int numOfCandidates,
IRunResult
[] previousRuns)
160
IRunResult
[] history = previousRuns;
177
private ParameterSet[] GenerateChildConfigurations(
IRunResult
[] history, int[] parentIndicies, double[] weights,
IRunResult
[] previousRuns, double rMean, double rVar)
202
private ParameterSet SampleChild(ParameterSet parent, double fitness, int n,
IRunResult
[] previousRuns, double rMean, double rVar, bool isMetricMaximizing)
320
private double[] HistoryToWeights(
IRunResult
[] history, int n, double rMean, double rVar)
344
private double[] ExtractRandomRunValues(IEnumerable<
IRunResult
> previousRuns)
353
private double[] CategoriesToWeights(DiscreteValueGenerator param,
IRunResult
[] previousRuns)
396
private double[] CategoriesToWeightsOld(DiscreteValueGenerator param, IEnumerable<
IRunResult
> previousRuns)
426
private
IRunResult
[] TruncateHistory(
IRunResult
[] history)
Algorithms\NelderMead.cs (24)
71
private SortedList<
IRunResult
, float[]> _simplexVertices;
77
private KeyValuePair<
IRunResult
, float[]> _lastReflectionResult;
79
private KeyValuePair<
IRunResult
, float[]> _worst;
80
private KeyValuePair<
IRunResult
, float[]> _secondWorst;
81
private KeyValuePair<
IRunResult
, float[]> _best;
119
_simplexVertices = new SortedList<
IRunResult
, float[]>(new SimplexVertexComparer());
125
public ParameterSet[] ProposeSweeps(int maxSweeps, IEnumerable<
IRunResult
> previousRuns = null)
132
foreach (
var
run in previousRuns)
135
foreach (
var
run in previousRuns)
232
var
expansionResult = FindRunResult(previousRuns)[0].Key;
245
var
outerContractionResult = FindRunResult(previousRuns)[0].Key;
264
var
innerContractionResult = FindRunResult(previousRuns)[0].Key;
298
private void UpdateSimplex(
IRunResult
newVertexResult, float[] newVertex)
348
private void ReplaceSimplexVertices(IEnumerable<
IRunResult
> previousRuns)
351
var newSimplexVertices = new SortedList<
IRunResult
, float[]>(new SimplexVertexComparer());
361
private List<KeyValuePair<
IRunResult
, float[]>> FindRunResult(IEnumerable<
IRunResult
> previousRuns)
363
var result = new List<KeyValuePair<
IRunResult
, float[]>>();
366
foreach (
var
run in previousRuns)
370
result.Add(new KeyValuePair<
IRunResult
, float[]>(run, sweep.Value));
399
private bool TryGetReductionPoints(int maxSweeps, IEnumerable<
IRunResult
> previousRuns)
458
private sealed class SimplexVertexComparer : IComparer<
IRunResult
>
460
public int Compare(
IRunResult
x,
IRunResult
y)
Algorithms\SmacSweeper.cs (7)
87
public ParameterSet[] ProposeSweeps(int maxSweeps, IEnumerable<
IRunResult
> previousRuns = null)
98
List<
IRunResult
> viableRuns = new List<
IRunResult
>();
112
private FastForestRegressionModelParameters FitModel(IEnumerable<
IRunResult
> previousRuns)
162
private ParameterSet[] GenerateCandidateConfigurations(int numOfCandidates, IEnumerable<
IRunResult
> previousRuns, FastForestRegressionModelParameters forest)
190
private ParameterSet[] GreedyPlusRandomSearch(ParameterSet[] parents, FastForestRegressionModelParameters forest, int numOfCandidates, IEnumerable<
IRunResult
> previousRuns)
378
private ParameterSet[] GetKBestConfigurations(IEnumerable<
IRunResult
> previousRuns, FastForestRegressionModelParameters forest, int k = 10)
AsyncSweeper.cs (9)
57
void Update(int id,
IRunResult
result);
71
private readonly List<
IRunResult
> _results;
88
_results = new List<
IRunResult
>();
101
public void Update(int id,
IRunResult
result)
182
private readonly List<
IRunResult
> _results;
209
_results = new List<
IRunResult
>();
217
private void PrepareNextBatch(IEnumerable<
IRunResult
> results)
240
public void Update(int id,
IRunResult
result)
254
private void UpdateResult(int id,
IRunResult
result)
ConfigRunner.cs (4)
26
IEnumerable<
IRunResult
> RunConfigs(ParameterSet[] sweeps, int min);
160
public IEnumerable<
IRunResult
> RunConfigs(ParameterSet[] sweeps, int min)
178
protected abstract IEnumerable<
IRunResult
> RunConfigsCore(ParameterSet[] sweeps, IChannel ch, int min);
200
protected override IEnumerable<
IRunResult
> RunConfigsCore(ParameterSet[] sweeps, IChannel ch, int min)
ISweeper.cs (5)
40
ParameterSet[] ProposeSweeps(int maxSweeps, IEnumerable<
IRunResult
> previousRuns = null);
79
IRunResult
GetRunResult(ParameterSet parameters, TResults results);
189
public interface IRunResult : IComparable<
IRunResult
>
244
public int CompareTo(
IRunResult
other)
261
IComparable
IRunResult
.MetricValue
SweepCommand.cs (1)
84
var runs = new List<
IRunResult
>();
SweepResultEvaluator.cs (1)
74
public
IRunResult
GetRunResult(ParameterSet parameterSet, string resultFileName)
SynthConfigRunner.cs (3)
42
protected override IEnumerable<
IRunResult
> RunConfigsCore(ParameterSet[] sweeps, IChannel ch, int min)
44
List<
IRunResult
> results = new List<
IRunResult
>();
Microsoft.ML.Sweeper.Tests (5)
TestSweeper.cs (5)
272
var results = new List<KeyValuePair<int,
IRunResult
>>();
280
results.Add(new KeyValuePair<int,
IRunResult
>(task.CompletedResult().Id, new RunResult(task.CompletedResult().ParameterSet, 0.42, true)));
563
var results = new List<
IRunResult
>();
611
var results = new List<
IRunResult
>();
659
var results = new List<
IRunResult
>();