HyperparameterOptimizationResult<T>
Models & Types · AiDotNet.Models.Results
Contains the results of a hyperparameter optimization process.
How It Works
For Beginners: This stores everything about a hyperparameter search, including the best hyperparameters found and all the trials that were run.
Constructors
| Constructor | Summary |
|---|---|
HyperparameterOptimizationResult() |
Initializes a new instance of the HyperparameterOptimizationResult class. |
Properties
| Property | Summary |
|---|---|
DateTime EndTime { get; set; } |
Gets or sets the end time of optimization. |
DateTime StartTime { get; set; } |
Gets or sets the start time of optimization. |
Dictionary<string, object> BestParameters { get; set; } |
Gets or sets the best hyperparameter values. |
HyperparameterSearchSpace SearchSpace { get; set; } |
Gets or sets the search space that was used. |
HyperparameterTrial<T> BestTrial { get; set; } |
Gets or sets the best trial found during optimization. |
List<HyperparameterTrial<T>> AllTrials { get; set; } |
Gets or sets all trials performed. |
T BestObjectiveValue { get; set; } |
Gets or sets the best objective value achieved. |
TimeSpan TotalTime { get; set; } |
Gets or sets the total optimization time. |
int CompletedTrials { get; set; } |
Gets or sets the number of completed trials. |
int FailedTrials { get; set; } |
Gets or sets the number of failed trials. |
int PrunedTrials { get; set; } |
Gets or sets the number of pruned trials. |
int TotalTrials { get; set; } |
Gets or sets the total number of trials run. |
Methods
| Method | Summary |
|---|---|
List<HyperparameterTrial<T>> GetTopTrials(int n, bool maximize) |
Gets the top N trials by objective value. |
List<ValueTuple<int, T>> GetOptimizationHistory() |
Gets the optimization history as a list of (trial number, objective value) pairs. |