Encode your data¶
- api.encode.encode(encoders, subsets, target)[source]¶
Given a list of Lightwood encoders, and data subsets, applies the encoders onto each subset.
- Parameters
encoders (
List
[BaseEncoder
]) – A list of lightwood encoders, in the order of each of the column types.folds – A list of data subsets, each being a separate dataframe with all the columns applied per encoder.
target (
str
) – The name of the column that is the target for prediction.
- Return type
List
[EncodedDs
]- Returns
An encoded dataset for each encoder in the list