tabensemb.data.datamodule.DataModule.derive_unstacked#
method
- DataModule.derive_unstacked(df: DataFrame, categorical_only=False) Dict[str, ndarray][source]#
Derive unstacked features using the input dataframe. Calculated using data derivers whose argument “stacked” is set to False. Categorical features will be added to the returned dict with the key “categorical”. Indices stating which data points are augmented will be added to the returned dict with the key “augmented” (1 for augmented ones).
- Parameters:
- df
The tabular dataset.
- categorical_only
Whether to only return categorical features.
- Returns:
- dict
The derived unstacked data.