arthurai.core.viz.visualizer.DataVisualizer#
- class arthurai.core.viz.visualizer.DataVisualizer(arthur_models)#
Bases:
object
Methods
Generates a line series visualization of data drift metrics for selected attributes.
Generates a line series visualization for selected metrics.
Generates a visualization of the distribution of an attribute over time.
- drift_series(attribute_names, drift_metric='PSI', time_resolution='day')#
Generates a line series visualization of data drift metrics for selected attributes.
# plot the KLDivergence drift of features X1, X2, and X3 by the hour arthur_model.viz.drift_series(["X1", "X2", "X3"], drift_metric="KLDivergence", time_resolution="hour")
- Raises
ArthurUserError – failed due to user error
ArthurInternalError – failed due to an internal error
- metric_series(metric_names, time_resolution='day')#
Generates a line series visualization for selected metrics.
# plot both the model's AUC metric and the model's FPR metric by the hour arthur_model.viz.metric_series(["auc", "falsePositiveRate"], time_resolution="hour")
- Raises
ArthurUserError – failed due to user error
ArthurInternalError – failed due to an internal error
- timeline(attribute_name)#
Generates a visualization of the distribution of an attribute over time. For categorical attributes, a stacked area chart over time. For continuous attributes, a joyplot showing probability densities over time. :raises ArthurUserError: failed due to user error :raises ArthurInternalError: failed due to an internal error