RunResult & ExperimentResult
Interpreting Nomadic results
A RunResult
is the outcome of a single hyperparameter configuration run of an Experiment
. An ExperimentResult
is a collection of all RunResult
s from a full Experiment
, encapsulating all of the defined hyperparameter configurations and their produced outputs.
RunResult
Class
Overview
The RunResult
class captures the outcome of a single hyperparameter configuration run of an experiment from the defined hyperparameter search space, including the score achieved, the parameters used, and any additional metadata related to the run.
Fields
Parameter | Type | Default | Description | Required |
---|---|---|---|---|
score | float | N/A | The score achieved in this run. | Yes |
params | Dict[str, Any] | N/A | A dictionary of parameters used in this run. | Yes |
metadata | Optional[Dict[str, Any]] | {} | Optional metadata related to the run. | No |
Example Usage
ExperimentResult
Class
Overview
The ExperimentResult
class aggregates the results from multiple hyperparameter configuration runs in an experiment, identifying the best run based on the score and providing methods to analyze and export the results.
Fields
Parameter | Type | Default | Description | Required |
---|---|---|---|---|
hp_search_space | Dict[str, Any] | N/A | The explored hyperparameter search space for this ExperimentRun | Yes |
run_results | List[RunResult] | N/A | A list of RunResult instances, representing each run’s outcome | Yes |
best_idx | Optional[int] | 0 | The position of the best RunResult in run_results | No |
name | Optional[str] | None | Name of the Experiment Result | No |
client_id | Optional[str] | None | ID of ExperimentResult on the Nomadic Workspace, if synched | No |
Methods
best_run_result() -> RunResult
Returns the RunResult
with the highest score.
to_df(include_metadata=True) -> pd.DataFrame
Exports the ExperimentResult
to a pandas DataFrame. If include_metadata
is True
, metadata fields are included as additional columns.