breos.plotting.plot_validation_soh_comparison#

breos.plotting.plot_validation_soh_comparison(measured_soh, predicted_soh, results_directory, x_label='Time', metrics=None)[source]#

Plot measured vs predicted SOH for degradation model validation.

Measured data is shown as scatter points, predicted as a line. Optionally annotates RMSE on the plot.

Parameters:
  • measured_soh (Series) – Series indexed by x-axis values (cycles, days, etc.) with measured SOH

  • predicted_soh (Series) – Series indexed by same x-axis values with predicted SOH

  • results_directory (str) – Directory to save plot

  • x_label (str) – Label for x-axis

  • metrics (Optional[dict]) – Optional dict with ‘RMSE’, ‘MAE’, etc. to annotate

Return type:

None