Zurück zu den Modellen
Transformer

TimeBinner

Turns time series/panel data into tabular data based on intervals.

This estimator converts nested pandas dataframe containing time-series/panel data with numpy arrays or pandas Series in dataframe cells into a tabular pandas dataframe with only primitives in cells. The primitives are calculated based on Intervals defined by the IntervalIndex and aggregated by aggfunc.

This is useful for transforming time-series/panel data into a format that is accepted by standard validation learning algorithms (as in sklearn).

Schnellstart

python
from sktime.transformations.reduce import TimeBinner

estimator = TimeBinner(idx, aggfunc=None)

Parameter(2)

idxpd.IntervalIndex
IntervalIndex defining intervals considered by aggfunc
aggfunccallable
Function used to aggregate the values in intervals. Should have signature 1D -> float and defaults to mean if None