Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.exceptions`.InconsistentVersionWarning

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

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

  Parameters:
    estimator_name str

      Estimator name.

    current_sklearn_version str

      Current scikit-learn version.

    original_sklearn_version str

      Original scikit-learn version.

  Attributes:
    args

  Methods

  `add_note` | Exception.add_note(note) -- add a note to the exception
  `with_traceback` | Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

  add_note()

    Exception.add_note(note) – add a note to the exception

  with_traceback()

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