ExplainerMixin

class paralytics.xai.ExplainerMixin[source]

Bases: object

Mixin class for all AI explainers in paralytics.xai subpackage.

Methods Summary

explain(self)

Explain the black box returning object that visualizes properties.

fit(self, X, y)

Fit to data.

fit_explain(self, X[, y])

Fit to data, then explain properties.

Methods Documentation

abstract explain(self)[source]

Explain the black box returning object that visualizes properties.

Notes

It should ultimately return the plot showing previously obtained properties in the fitting phase. Sometimes it is insufficient or impossible, hence it is acceptable to return a concise value or the description itself.

abstract fit(self, X, y)[source]

Fit to data.

fit_explain(self, X, y=None, **fit_params)[source]

Fit to data, then explain properties.