Group a DataFrame into a variable-length sequence dataset.
Splits data by the values of group_by (e.g. one compressor speed line per group) and wraps the groups in a ManyToManyDataset or ManyToOneDataset. Ported from the schu25a study’s load_data helper (src/rnn/utils.py); the experiment-specific column defaults were removed.
Columns scaled by feature_scaling. Only used when feature_scaling is given; the dataset features are always all columns except drop and target. Defaults to None.
None
feature_scaling
Optional sklearn-style scaler; applied in place to data[input_features] via fit_transform. Defaults to None.
None
target_scaling
Optional sklearn-style scaler; applied in place to data[target] via fit_transform. Defaults to None.
Dataset flavor. Options: - “many_to_many”: one target value per time step. - “many_to_one”: one scalar target per sequence. Defaults to “many_to_many”.