This is documentation for an old release of Scikit-learn (version 1.4). Try the latest stable release (version 1.6) or development (unstable) versions.

sklearn.exceptions.InconsistentVersionWarning

class sklearn.exceptions.InconsistentVersionWarning(*, estimator_name, current_sklearn_version, original_sklearn_version)[source]

Warning raised when an estimator is unpickled with a inconsistent version.

Parameters:
estimator_namestr

Estimator name.

current_sklearn_versionstr

Current scikit-learn version.

original_sklearn_versionstr

Original scikit-learn version.

Attributes:
args

Methods

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.