Skip to content

dl utils

polars_ts.classification._dl_utils

Shared utilities for deep learning classifiers.

extract_classification_data(df, id_col, target_col, time_col, label_col=None)

Extract padded series and optional labels.

Returns

ids Series identifiers. X Padded array of shape (n_series, max_len). y Integer labels of shape (n_series,) or None if no label_col.