get_objective_trace#
- ExplorationDiagnostics.get_objective_trace(objective=None, fidelity_parameter=None, min_fidelity=None, use_time_axis=False, t_array=None, relative_start_time=True)#
Get the cumulative maximum or minimum of the objective.
- Parameters:
- objectivestr, optional
Objective, or name of the objective to plot. If None, the first objective of the exploration is shown.
- fidelity_parameter: str, optional
Name of the fidelity parameter. If fidelity_parameter and min_fidelity are set, only the runs with fidelity above min_fidelity are considered.
- fidelity_min: float, optional
Minimum fidelity above which points are considered
- use_time_axisbool, optional
Whether the x axis should be the time at which the evaluations were completed, instead of the evaluation index.
- t_array: 1D numpy array, optional
Array with time values. If provided, the trace is interpolated to the times in the array. Requires
use_time_axis=True.- relative_start_timebool, optional
Whether the time axis should be relative to the start time of the exploration. By default, True.
- Returns:
- time1D numpy array
- objective_trace1D numpy array