FitFailedWarning#

class FitFailedWarning[source]#

Warning class used if there is an error while fitting the estimator.

This Warning is used in meta estimators GridSearchCV and RandomizedSearchCV and the cross-validation helper function cross_val_score to warn when there is an error while fitting the estimator.

FitFailedWarning(‘Estimator fit failed. The score on this train-test partition for these parameters will be set to 0.000000’).

Attributes:
args

References

[1]

Based on scikit-learn’s FitFailedWarning

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()[source]#

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

with_traceback()[source]#

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