INNER CODE UNIT · Python
fit
aimclub/FEDOT · fedot/api/main.py:124
def fit(self,
features: FeaturesType,
target: TargetType = 'target',
predefined_model: Union[str, Pipeline] = None) -> Pipeline:
"""Composes and fits a new pipeline, or fits a predefined one.
Args:
features: train data feature values in one of the supported features formats.
target: train data target values in one of the supported target formats.
predefined_model: the name of a single model or a :class:`Pipeline` instance, or ``auto``.
With any value specified, the method does not perform composing and tuning.
In case of ``auto``, the method generates a single initial assumption and then fits
the created pipeline.
Returns:
:class:`Pipeline` object.
"""