2 types derived from TrialResult
Microsoft.ML.AutoML (2)
AutoMLExperiment\TrialResult.cs (2)
54internal class TrialResult<TMetric> : TrialResult 70public class FairnessTrialResult : TrialResult
16 instantiations of TrialResult
Microsoft.ML.AutoML (6)
AutoMLExperiment\AutoMLExperiment.cs (1)
308var trialResult = new TrialResult
AutoMLExperiment\ITrialResultManager.cs (3)
55_trialResultsHistory = new HashSet<TrialResult>(trialResults, new TrialResult()); 56_newTrialResults = new HashSet<TrialResult>(new TrialResult()); 174var trialResult = new TrialResult
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
63return new TrialResult 81return new TrialResult
Microsoft.ML.AutoML.Tests (10)
AutoMLExperimentTests.cs (1)
453return new TrialResult
TrialResultManagerTest.cs (1)
44return new TrialResult
TunerTests.cs (8)
59tuner.Update(new TrialResult() 90tuner.Update(new TrialResult() 125var result = new TrialResult() 188var trialResult = new TrialResult 223var trialResult = new TrialResult 270tuner.Update(new TrialResult() 325tuner.Update(new TrialResult() 371tuner.Update(new TrialResult()
93 references to TrialResult
Microsoft.ML.AutoML (64)
API\BinaryClassificationExperiment.cs (2)
380public TrialResult Run(TrialSettings settings) 448public Task<TrialResult> RunAsync(TrialSettings settings, CancellationToken ct)
API\MulticlassClassificationExperiment.cs (2)
360public TrialResult Run(TrialSettings settings) 426public Task<TrialResult> RunAsync(TrialSettings settings, CancellationToken ct)
API\RegressionExperiment.cs (3)
380public Task<TrialResult> RunAsync(TrialSettings settings, CancellationToken ct) 421} as TrialResult); 446} as TrialResult);
AutoMLExperiment\AutoMLExperiment.cs (5)
37private TrialResult _bestTrialResult = null; 202public TrialResult Run() 214public async Task<TrialResult> RunAsync(CancellationToken ct = default) 273var trialResult = await runner.RunAsync(trialSettings, trialCancellationTokenSource.Token); 308var trialResult = new TrialResult
AutoMLExperiment\IMonitor.cs (8)
16void ReportCompletedTrial(TrialResult result); 18void ReportBestTrial(TrialResult result); 31private readonly List<TrialResult> _completedTrials; 37_completedTrials = new List<TrialResult>(); 41public virtual void ReportBestTrial(TrialResult result) 46public virtual void ReportCompletedTrial(TrialResult result) 86public override void ReportBestTrial(TrialResult result) 99public override void ReportCompletedTrial(TrialResult result)
AutoMLExperiment\IStopTrainingManager.cs (5)
19void Update(TrialResult result); 51public void Update(TrialResult result) 80public void Update(TrialResult result) 102public void Update(TrialResult result) 158public void Update(TrialResult result)
AutoMLExperiment\ITrialResultManager.cs (14)
21IEnumerable<TrialResult> GetAllTrialResults(); 23void AddOrUpdateTrialResult(TrialResult result); 35private readonly HashSet<TrialResult> _trialResultsHistory; 38private readonly HashSet<TrialResult> _newTrialResults; 55_trialResultsHistory = new HashSet<TrialResult>(trialResults, new TrialResult()); 56_newTrialResults = new HashSet<TrialResult>(new TrialResult()); 59public void AddOrUpdateTrialResult(TrialResult result) 69public IEnumerable<TrialResult> GetAllTrialResults() 100foreach (var trialResult in _newTrialResults.OrderBy(res => res.TrialSettings.TrialId)) 120foreach (var result in _newTrialResults) 128private IEnumerable<TrialResult> LoadFromCsvFile(string filePath) 132return Array.Empty<TrialResult>(); 147var res = new List<TrialResult>(); 174var trialResult = new TrialResult
AutoMLExperiment\Runner\ITrialRunner.cs (1)
19Task<TrialResult> RunAsync(TrialSettings settings, CancellationToken ct);
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
35public TrialResult Run(TrialSettings settings) 94public Task<TrialResult> RunAsync(TrialSettings settings, CancellationToken ct)
AutoMLExperiment\TrialResult.cs (4)
15public class TrialResult : IEqualityComparer<TrialResult> 37public bool Equals(TrialResult x, TrialResult y) 45public int GetHashCode(TrialResult obj)
Tuner\AutoZeroTuner.cs (1)
112public void Update(TrialResult result)
Tuner\CostFrugalTuner.cs (3)
31public CostFrugalTuner(SearchSpace.SearchSpace searchSpace, Parameter initValue = null, IEnumerable<TrialResult> trialResults = null, int? seed = null) 46foreach (var trial in trialResults) 74public void Update(TrialResult result)
Tuner\EciCfoTuner.cs (2)
42foreach (var trials in trialResultManager.GetAllTrialResults()) 67public void Update(TrialResult result)
Tuner\GridSearchTuner.cs (1)
39public void Update(TrialResult result)
Tuner\ITuner.cs (1)
13void Update(TrialResult result);
Tuner\PipelineProposer.cs (1)
134public void Update(TrialResult result, string schema)
Tuner\RandomSearchTuner.cs (1)
34public void Update(TrialResult result)
Tuner\SmacTuner.cs (8)
27private readonly List<TrialResult> _histories; 75_histories = new List<TrialResult>(); 118internal List<TrialResult> Histories => _histories; 120private FastForestRegressionModelParameters FitModel(IEnumerable<TrialResult> history) 126foreach (var r in history) 169private Parameter[] GenerateCandidateConfigurations(int numOfCandidates, IEnumerable<TrialResult> previousRuns, FastForestRegressionModelParameters forest) 214foreach (var previousRun in _histories) 364public void Update(TrialResult result)
Microsoft.ML.AutoML.Interactive (6)
NotebookMonitor.cs (6)
21public TrialResult BestTrial { get; set; } 22public TrialResult MostRecentTrial { get; set; } 24public List<TrialResult> CompletedTrials { get; set; } 29CompletedTrials = new List<TrialResult>(); 35public void ReportBestTrial(TrialResult result) 42public void ReportCompletedTrial(TrialResult result)
Microsoft.ML.AutoML.Samples (3)
AutoMLExperiment.cs (1)
51var result = await experiment.RunAsync();
Cifar10.cs (1)
46var result = experiment.Run();
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
77var result = await experiment.RunAsync();
Microsoft.ML.AutoML.Tests (16)
AutoMLExperimentTests.cs (11)
143var res = await experiment.RunAsync(cts.Token); 176var res = await experiment.RunAsync(cts.Token); 230var result = await experiment.RunAsync(); 255var result = await experiment.RunAsync(); 280var result = await experiment.RunAsync(); 307var result = await experiment.RunAsync(); 334var result = await experiment.RunAsync(); 361var result = await experiment.RunAsync(); 391var result = await experiment.RunAsync(); 410var result = await experiment.RunAsync(); 445public async Task<TrialResult> RunAsync(TrialSettings settings, CancellationToken ct)
TunerTests.cs (5)
110var history = new List<TrialResult>(); 125var result = new TrialResult() 136var lastResult = history.Last(); 188var trialResult = new TrialResult 223var trialResult = new TrialResult
Microsoft.ML.Fairlearn (3)
AutoML\TunerFactory.cs (1)
44public void Update(TrialResult result)
Reductions\GridSearchTrialRunner.cs (2)
50public Task<TrialResult> RunAsync(TrialSettings settings, CancellationToken ct) 96return Task.FromResult<TrialResult>(new FairnessTrialResult()
Microsoft.ML.Fairlearn.Tests (1)
GridSearchTest.cs (1)
104var bestResult = experiment.Run();