plot_summaries#

er_evaluation.plots.plot_summaries(predictions, names=None, type='line', line_shape='spline', markers=True, **kwargs)[source]#

Plot summary statistics

Parameters:
  • predictions (dict) – Dictionary of predictions for which to plot the summary statistics.

  • names (Series, optional) – Series with cluster element names. Used to compute the homonymy rate and the name variation rate. Defaults to None.

  • type (str, optional) – One of “line” for a line plot, or “bar” for a bar plot. Defaults to “line”.

  • **kwargs (optional) – Additional arguments to pass to plotly express for plot creation.

Returns:

plotly Figure

Examples

>>> from er_evaluation.datasets import load_pv_disambiguations
>>> predictions, _ = load_pv_disambiguations()
>>> fig = plot_summaries(predictions)
>>> fig.show()