ModelEvaluatorPlot

class ModelEvaluatorPlot[source]

Plotting class for ModelEvaluator results.

Visualizes the two ModelEvaluator tables: scores() draws grouped confidence-interval bars of the cross-validated scores per (model, metric) from ModelEvaluator.run(), and compare() draws the paired model comparison from ModelEvaluator.eval() as signed delta bars with bootstrap-CI whiskers and significance markers. learning_curve() draws the metric versus training size from ModelEvaluator.learning_curve() with a CI band.

Every plotting method returns a (fig, ax) pair (a thin tuple subclass): unpack as fig, ax = .... For backward compatibility, the returned object also forwards attribute access to ax.

Added in version 1.1.0.

Changed in version 1.2.0: Added learning_curve() for learning-curve tables.

See also

Methods

compare(df_eval, *[, figsize, colors, alpha])

Plot the paired model comparison as signed delta bars with CI whiskers.

learning_curve(df_curve, *[, metric, ...])

Plot a learning curve: one metric versus training size per model, with a CI band.

scores(df_eval, *[, figsize, colors, metrics])

Plot cross-validated scores per (model, metric) as grouped bars with CI error bars.

__init__()[source]

See also

  • ModelEvaluator: the logic class whose evaluation and comparison this visualizes.