ensemble
ensemble
¶
Ensemble models combining multiple predictors.
EnsembleModel
¶
Ensemble combining multiple models with weighted averaging.
| PARAMETER | DESCRIPTION |
|---|---|
models
|
List of model instances
TYPE:
|
weights
|
Weights for each model (must sum to 1)
TYPE:
|
Source code in fplx/models/ensemble.py
predict
¶
Ensemble prediction for a single player.
| PARAMETER | DESCRIPTION |
|---|---|
player_data
|
Player historical data
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Ensemble prediction |
Source code in fplx/models/ensemble.py
batch_predict
¶
Ensemble predictions for multiple players.
| PARAMETER | DESCRIPTION |
|---|---|
players_data
|
Dictionary mapping player ID to their data
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Dict[str, float]
|
Dictionary of ensemble predictions |
Source code in fplx/models/ensemble.py
AdaptiveEnsemble
¶
Bases: EnsembleModel
Adaptive ensemble that adjusts weights based on recent performance.
Source code in fplx/models/ensemble.py
update_weights
¶
Update weights based on recent errors.