safeai.rga.plot_rga
- safeai.rga.plot_rga(result, *, model_name='Model', fig_size=(12, 5), save_path=None, show=False)[source]
Plot one RGA curve or several RGA curves.
- Parameters:
result (dict) – Either: - result from rga_curve(…) - results from compare_rga(…)
model_name (str, default='Model') – Used only when plotting one curve.
fig_size (tuple, default=(12, 5)) – Figure size.
save_path (str or None, default=None) – If provided, save the plot.
show (bool, default=False) – If True, display the plot with plt.show().
- Returns:
If save_path is provided and show is False, returns save_path. Otherwise, returns (fig, ax).
- Return type:
str or tuple