pyscat.plot
Plotting functions for PyScat.
Functions
|
Plot the history of the eSS optimization. |
|
Plot SacessOptimizer history. |
- pyscat.plot.merge_monotonic_histories(histories, strict=True)[source]
Get the overall monotonically decreasing history from multiple histories.
- Parameters:
histories (
list[HistoryBase]) – List of histories to merge. The histories are expected to have time and function value traces, and that the function values are monotonically decreasing within each history.strict (bool)
- Return type:
- Returns:
- t:
Time points of overall history.
- fx:
Objective values of overall history.
- pyscat.plot.plot_ess_history(history)[source]
Plot the history of the eSS optimization.
- Parameters:
history (HistoryBase)
- pyscat.plot.plot_sacess_history(histories, ax=None)[source]
Plot SacessOptimizer history.
Plot the history of the best objective values for each
SacessOptimizerworker over computation time as step splot.- Parameters:
histories (
list[HistoryBase]) – List of histories from different workers as obtained fromSacessOptimizer.histories.ax (
Axes|None) – Axes object to use.
- Return type:
Axes- Returns:
The plot axes. ax or a new axes if ax was None.