Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.exceptions`.UndefinedMetricWarning

class sklearn.exceptions.UndefinedMetricWarning

  Warning used when the metric is invalid

  Changed in version 0.18: Moved from sklearn.base.

  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.