langcheck.plot#

langcheck.plot contains functions to visualize the output of metric functions (MetricValue objects).

For example, run langcheck.plot.scatter() in a Jupyter notebook to see this interactive scatter plot:

_images/scatter_one_metric.gif

Tip

As a shortcut, you can run plotting functions directly on an MetricValue. For example, toxicity_values.scatter() is equivalent to langcheck.plot.scatter(toxicity_values).


langcheck.plot.histogram(metric_value: MetricValue, jupyter_mode: str = 'inline') None[source]#

Shows an interactive histogram of all data points in MetricValue. When run in a notebook, this usually displays the chart inline in the cell output.

Parameters:
langcheck.plot.scatter(metric_value: MetricValue, other_metric_value: MetricValue | None = None, jupyter_mode: str = 'inline') None[source]#

Shows an interactive scatter plot of all data points in an MetricValue. When run in a notebook, this usually displays the chart inline in the cell output.

Parameters: