Transformers cheat sheets
Transformers cheat sheets
dunders glossary
Type |
Dunder |
Meaning |
|
|---|---|---|---|
compose |
|
chaining/pipeline - also works with other estimator types |
type dependent |
compose |
|
chaining to secondary input of another estimator |
type dependent |
compose |
|
feature union |
|
interface |
|
invert |
|
structural |
|
multiplexing (“switch”) |
type dependent |
structural |
|
optional passthrough (“on/off”) |
|
selected useful transformers, compositors, adapters
delay fitting to
transformviasktime.transformations.compose.FitInTransformany
pandasmethod viasktime.transformations.compose.adapt.PandasTransformAdaptordate/time features via
sktime.transformations.date.DateTimeFeatureslags via
transformations.lag.Lagdifferences, first and n-th, via
transformations.difference.Differencerscaled logit via
transformations.scaledlogit.ScaledLogitTransform
Transformer type glossary
Common types of transformation in sktime:
from |
to |
base class |
examples (sci) |
examples ( |
|---|---|---|---|---|
time series |
scalar features |
|
|
|
time series |
time series |
|
detrending, smoothing, filtering, lagging |
|
time series panel |
also a panel |
|
principal component projection |
|
two feature vectors |
a scalar |
|
Euclidean distance, L1 distance |
|
two time series |
a scalar |
|
DTW distance, alignment kernel |
|
first three = “time series transformers”, or, simply, “transformers”
all “transformers” follow the same base interface.
“pairwise transformers” have separate base interface (due to two inputs)
include distances and kernels between time series or feature vectors
all inherit BaseObject and follow unified skbase interface with get_params, get_fitted_params, etc
Generated using nbsphinx. The Jupyter notebook can be found here.

