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

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

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.