fit_is_empty#

fit_is_empty()[source]#

Property: Whether the estimator has an empty fit method.

  • String name: "fit_is_empty"

  • Public property tag

  • Values: boolean, True / False

  • Example: True

  • Default: True (transformations), False (other estimators)

If the tag is True, the estimator has an empty fit method, i.e., the method does not perform any calculations or learning. If the tag is False, the estimator has a non-empty fit method.

In both cases, calling fit is necessary for calling further methods such as predict or transform, for API consistency.

The tag may be inspected by the user to distinguish between estimators that do not learn from data from those that do.

The tag is also used internally by sktime to short cut boilerplate code, e.g., in the fit methods.