base_meta#

Metaclass that overrides creating a new component or pipeline by wrapping methods with validators and setters.

Module Contents#

Classes Summary#

BaseMeta

Metaclass that overrides creating a new component or pipeline by wrapping methods with validators and setters.

Contents#

class evalml.utils.base_meta.BaseMeta[source]#

Metaclass that overrides creating a new component or pipeline by wrapping methods with validators and setters.

Attributes

FIT_METHODS

[‘fit’, ‘fit_transform’]

METHODS_TO_CHECK

[‘predict’, ‘predict_proba’, ‘transform’, ‘inverse_transform’]

PROPERTIES_TO_CHECK

[‘feature_importance’]

Methods

register

Register a virtual subclass of an ABC.

set_fit

Wrapper for the fit method.

register(cls, subclass)#

Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.

classmethod set_fit(cls, method)[source]#

Wrapper for the fit method.