The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here

pastas.plotting.modelcompare.CompareModels.get_metrics#

CompareModels.get_metrics(models=None, metric_selection=None)[source]#

get metrics of all models in a DataFrame.

Parameters
  • models (list of ps.Model, optional) – list of models to calculate metrics for, by default None.

  • metric_selection (list of str, optional) – names of metrics to calculate, by default None.

Returns

metrics – DataFrame containing calculated metrics.

Return type

pd.DataFrame