Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.exceptions`.ConvergenceWarning

class sklearn.exceptions.ConvergenceWarning

  Custom warning to capture convergence problems

  Changed in version 0.18: Moved from sklearn.utils.

  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.

## Examples using `sklearn.exceptions.ConvergenceWarning`

Early stopping of Stochastic Gradient Descent

Early stopping of Stochastic Gradient Descent

Multiclass sparse logistic regression on 20newgroups

Multiclass sparse logistic regression on 20newgroups

Compare Stochastic learning strategies for MLPClassifier

Compare Stochastic learning strategies for MLPClassifier

Visualization of MLP weights on MNIST

Visualization of MLP weights on MNIST

Feature discretization

Feature discretization