sklearn.exceptions
.UndefinedMetricWarning¶
- class sklearn.exceptions.UndefinedMetricWarning[source]¶
Warning used when the metric is invalid
Changed in version 0.18: Moved from sklearn.base.
- Attributes:
- args
Methods
add_note
(object, /)Exception.add_note(note) -- add a note to the exception
with_traceback
(object, /)Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.