features
features
¶
Feature engineering pipeline for FPL time-series data.
FeatureEngineer
¶
Feature engineering pipeline for player time-series data.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Feature configuration dictionary
TYPE:
|
Source code in fplx/timeseries/features.py
fit_transform
¶
Apply all feature engineering transformations.
| PARAMETER | DESCRIPTION |
|---|---|
df
|
Input player timeseries data
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
DataFrame
|
Transformed data with engineered features |
Source code in fplx/timeseries/features.py
get_feature_names
¶
Get list of all generated feature names.
| PARAMETER | DESCRIPTION |
|---|---|
base_columns
|
Base column names
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[str]
|
Generated feature names |
Source code in fplx/timeseries/features.py
create_future_features
¶
Create features for future predictions.
This method extends the historical data by horizon periods,
applies the full feature engineering pipeline, and returns
the newly created future feature set.
| PARAMETER | DESCRIPTION |
|---|---|
df
|
Historical data
TYPE:
|
horizon
|
Number of future gameweeks to predict
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
DataFrame
|
DataFrame with features for future gameweeks |