tabensemb.data.AbstractDeriver._derive#
method
- AbstractDeriver._derive(df: DataFrame, datamodule: DataModule) ndarray[source]#
The main function for a data-deriver.
- Parameters:
- df:
The tabular dataset.
- datamodule:
A
DataModuleinstance. Data-derivers might use information in the DataModule, but would not change its contents.
- Returns:
- np.ndarray
The derived data. If it is one-dimensional, use reshape(-1, 1) to transform it into two-dimensional.