make_pipeline

make_pipeline(*steps)[source]

Create a pipeline from aeon and sklearn estimators.

Currently available for:

classifiers, regressors, clusterers, and collection transformers.

Parameters:
stepslist or tuple of aeon and/or sklearn estimators

This should be provided in same order as the required pipeline construction

Returns:
pipeaeon pipeline containing steps, in order

always a descendant of BaseAeonEstimator, precise object determined by equivalent to result of step[0] * step[1] * … * step[-1]

Examples

Example 1: classifier pipeline >>> from aeon.classification.feature_based import Catch22Classifier >>> from aeon.pipeline import make_pipeline >>> from aeon.transformations.collection import PeriodogramTransformer >>> pipe = make_pipeline(PeriodogramTransformer(), Catch22Classifier()) >>> type(pipe).__name__ ‘ClassifierPipeline’

Example 2: transformer pipeline >>> from aeon.pipeline import make_pipeline >>> from aeon.transformations.collection import PeriodogramTransformer >>> pipe = make_pipeline(PeriodogramTransformer(), PeriodogramTransformer()) >>> type(pipe).__name__ ‘CollectionTransformerPipeline’