enriched
enriched
¶
Fixture-aware enriched prediction with semi-variance for downside risk.
Improvements over base enriched: - Cards, own goals, penalties (negative pts previously unmodeled) - Home/away adjustment from player history - Opponent strength adjustment from player history - Ensemble with FPL's xP when available - Semi-variance: only penalize downside deviation below E[P] - Longer lookback with exponential decay (more data, recency bias)
compute_xpoints
¶
Compute per-GW expected points from ALL underlying components.
Source code in fplx/inference/enriched.py
enriched_predict
¶
Predict expected points with fixture awareness and semi-variance.
| PARAMETER | DESCRIPTION |
|---|---|
timeseries
|
TYPE:
|
position
|
TYPE:
|
alpha
|
EWMA decay.
TYPE:
|
lookback
|
Max recent GWs (increased from 10 to 15 for more data).
TYPE:
|
upcoming_fixture
|
{"was_home": bool, "opponent_team": int, "xP": float}
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
expected_points
|
TYPE:
|
variance
|
TYPE:
|
downside_risk
|
TYPE:
|
Source code in fplx/inference/enriched.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | |
batch_enriched_predict
¶
Run enriched prediction for all players. Returns ep, var, downside_risk dicts.