apexgrid 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. apexgrid-1.0.0.dist-info/METADATA +290 -0
  2. apexgrid-1.0.0.dist-info/RECORD +80 -0
  3. apexgrid-1.0.0.dist-info/WHEEL +5 -0
  4. apexgrid-1.0.0.dist-info/entry_points.txt +2 -0
  5. apexgrid-1.0.0.dist-info/licenses/LICENSE +21 -0
  6. apexgrid-1.0.0.dist-info/top_level.txt +1 -0
  7. src/__init__.py +1 -0
  8. src/cli/__init__.py +4 -0
  9. src/cli/historical_menu.py +861 -0
  10. src/cli/menu.py +2617 -0
  11. src/cli/terminal_ui.py +705 -0
  12. src/cli/typer_app.py +1413 -0
  13. src/config/model_config.json +151 -0
  14. src/config/settings.json +15 -0
  15. src/config/strategy_config.json +165 -0
  16. src/config/tracks.json +580 -0
  17. src/data/__init__.py +1 -0
  18. src/data/calendar_service.py +309 -0
  19. src/data/collect_season.py +1091 -0
  20. src/data/collect_track.py +379 -0
  21. src/data/data_loader.py +770 -0
  22. src/data/data_manager.py +650 -0
  23. src/data/data_validator.py +135 -0
  24. src/data/deletion_audit.py +87 -0
  25. src/data/grid_retriever.py +1377 -0
  26. src/data/roster_resolver.py +584 -0
  27. src/data/season_discovery.py +241 -0
  28. src/data/session_validation.py +107 -0
  29. src/features/__init__.py +43 -0
  30. src/features/build_features.py +1086 -0
  31. src/features/grid_conversion.py +183 -0
  32. src/features/grid_features.py +611 -0
  33. src/features/race_pace.py +342 -0
  34. src/features/season_features.py +336 -0
  35. src/features/teammate_features.py +261 -0
  36. src/features/tire_degradation.py +353 -0
  37. src/features/track_features.py +79 -0
  38. src/features/weather_features.py +179 -0
  39. src/features/weekend_features.py +285 -0
  40. src/historical/__init__.py +86 -0
  41. src/historical/analytics/__init__.py +58 -0
  42. src/historical/analytics/circuit_analytics.py +185 -0
  43. src/historical/analytics/dominance.py +132 -0
  44. src/historical/analytics/driver_analytics.py +425 -0
  45. src/historical/analytics/eras.py +149 -0
  46. src/historical/analytics/models.py +158 -0
  47. src/historical/analytics/qualifying_analytics.py +179 -0
  48. src/historical/analytics/race_analytics.py +175 -0
  49. src/historical/analytics/records.py +160 -0
  50. src/historical/analytics/reliability.py +76 -0
  51. src/historical/analytics/season_analytics.py +209 -0
  52. src/historical/analytics/session_results.py +518 -0
  53. src/historical/analytics/teammate_analytics.py +199 -0
  54. src/historical/api_client.py +244 -0
  55. src/historical/circuits_service.py +151 -0
  56. src/historical/classification_service.py +236 -0
  57. src/historical/events_service.py +260 -0
  58. src/historical/grid_service.py +176 -0
  59. src/historical/in_memory_cache.py +102 -0
  60. src/historical/models.py +287 -0
  61. src/historical/qualifying_service.py +345 -0
  62. src/historical/rate_limiter.py +121 -0
  63. src/models/__init__.py +6 -0
  64. src/models/dnf_hazard.py +125 -0
  65. src/models/evaluate.py +748 -0
  66. src/models/predict.py +382 -0
  67. src/models/train.py +152 -0
  68. src/pipeline/__init__.py +4 -0
  69. src/pipeline/race_prediction_pipeline.py +1779 -0
  70. src/simulation/__init__.py +4 -0
  71. src/simulation/monte_carlo.py +363 -0
  72. src/simulation/race_control_model.py +162 -0
  73. src/simulation/strategy_simulator.py +341 -0
  74. src/utils/__init__.py +1 -0
  75. src/utils/circuit_mapping.py +139 -0
  76. src/utils/driver_mapping.py +197 -0
  77. src/utils/logging_utils.py +70 -0
  78. src/utils/paths.py +81 -0
  79. src/utils/team_mapping.py +43 -0
  80. src/utils/timing.py +58 -0
@@ -0,0 +1,290 @@
1
+ Metadata-Version: 2.4
2
+ Name: apexgrid
3
+ Version: 1.0.0
4
+ Summary: Formula 1 race outcome prediction engine using FastF1 telemetry and Monte Carlo simulation
5
+ License: MIT
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: numpy<3.0.0,>=1.26.0
10
+ Requires-Dist: pandas<3.0.0,>=2.1.0
11
+ Requires-Dist: scipy<2.0.0,>=1.11.0
12
+ Requires-Dist: scikit-learn<2.0.0,>=1.3.0
13
+ Requires-Dist: xgboost<4.0.0,>=2.0.0
14
+ Requires-Dist: fastf1<4.0.0,>=3.4.0
15
+ Requires-Dist: typer<1.0.0,>=0.12.0
16
+ Requires-Dist: rich<15.0.0,>=13.7.0
17
+ Provides-Extra: dev
18
+ Requires-Dist: pytest<9.0.0,>=8.0.0; extra == "dev"
19
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
20
+ Dynamic: license-file
21
+
22
+ <div align="center">
23
+
24
+ # ApexGrid — Formula 1 Race Prediction & Motorsport Intelligence Engine
25
+
26
+ **ML-powered Formula 1 race predictions using FastF1 telemetry ingestion, a calibrated multi-model ensemble (Random Forest, XGBoost, Ridge Regression), and 25,000-iteration stochastic Monte Carlo simulation with stage-aware qualifying grid blending.**
27
+
28
+ [![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg)](https://www.python.org/)
29
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
30
+ [![Tests](https://img.shields.io/badge/tests-183%20passed%20%E2%9C%93-brightgreen.svg)](tests/)
31
+ [![ML Ensemble](https://img.shields.io/badge/ensemble-RF%20%2B%20XGB%20%2B%20Ridge-orange.svg)](src/models/)
32
+ [![Monte Carlo](https://img.shields.io/badge/Monte%20Carlo-25%2C000%20runs-purple.svg)](src/simulation/)
33
+
34
+ </div>
35
+
36
+ ---
37
+
38
+ ApexGrid is a production-grade Formula 1 race prediction platform that forecasts finishing positions, win probabilities, podium chances, and points finishes across all 23 championship rounds. It ingests real-time practice and qualifying telemetry via FastF1 and OpenF1, engineers 25+ predictive features (fuel-corrected pace, tire degradation curves, weather dynamics, safety car hazard priors), blends them through a calibrated multi-model ML ensemble of Random Forest, XGBoost, and Ridge Regression, and runs 25,000 stochastic Monte Carlo race simulations with empirical DNF hazard modeling — all behind strict stage-aware temporal boundaries that prevent future-session data leakage from qualifying or race results contaminating earlier predictions.
39
+
40
+ ```
41
+ FastF1 / OpenF1 ──► Feature Engineering ──► ML Ensemble ──► 25,000 Monte Carlo ──► Predictions
42
+ Telemetry (25+ features) (RF+XGB+Ridge) (DNF, weather, (Win%, Podium%,
43
+ (FP1–Quali) SC hazards) ExpectedFinish)
44
+ ```
45
+
46
+ ---
47
+
48
+ ## Table of Contents
49
+
50
+ - [Key Features](#key-features)
51
+ - [Quick Start](#quick-start)
52
+ - [Interactive Menu](#interactive-menu)
53
+ - [CLI Usage Recipes](#cli-usage-recipes)
54
+ - [Technical Architecture](#technical-architecture)
55
+ - [Configuration](#configuration)
56
+ - [Verification & Testing](#verification--testing)
57
+ - [Tech Stack](#tech-stack)
58
+ - [Contributing](#contributing)
59
+ - [License](#license)
60
+
61
+ ---
62
+
63
+ ## Key Features
64
+
65
+ - **Calibrated 3-Way ML Ensemble** — Random Forest (40%) + XGBoost (30%) + Ridge Regression (30%), tuned via chronological walk-forward validation. Also supports a 2-way hybrid mode (60/40 RF/XGB) and fully custom weight splits.
66
+ - **Circuit-Aware Starting-Grid Blending** — Dynamically adjusts grid vs. ML weighting by circuit topology: street circuits (Monaco, Baku, Singapore) at 50/50, permanent tracks (Spa, Monza, Silverstone) at 35/65, temporary venues (Melbourne, Montreal) at 45/55.
67
+ - **Stage-Gated Anti-Leakage** — Seven temporal stages (`pre_fp1`, `after_fp1`, `after_fp2`, `after_fp3`, `after_sprint_qualifying`, `after_sprint_race`, `after_qualifying`) strictly prevent qualifying or race data from contaminating earlier-stage predictions.
68
+ - **25,000-Run Monte Carlo Engine** — Stochastic race simulation with residual-calibrated pace variance, empirical DNF hazard modeling, wet-skill differentials, field compression dynamics, and venue-specific safety car disruption probabilities.
69
+ - **Zero-Leakage Walk-Forward Validation** — Shuffled k-fold is strictly prohibited. Models train on rounds {1…r−1} and test on out-of-sample round r, with blocked residual arrays on any fold failure.
70
+ - **Historical Intelligence (1950–2026)** — 11 analytics modules: driver career stats, teammate H2H, qualifying performance, race craft, circuit records, championship standings, session results, constructor dominance, all-time records, reliability analysis, and regulatory era comparisons.
71
+
72
+ ---
73
+
74
+ ## Quick Start
75
+
76
+ ```bash
77
+ git clone https://github.com/dineshdhayfule/F1-Race-Predictions.git
78
+ cd F1-Race-Predictions
79
+ python -m venv .venv
80
+ ```
81
+
82
+ Activate the virtual environment:
83
+
84
+ ```powershell
85
+ # Windows (PowerShell)
86
+ .venv\Scripts\Activate.ps1
87
+ ```
88
+
89
+ ```bash
90
+ # macOS / Linux
91
+ source .venv/bin/activate
92
+ ```
93
+
94
+ Install dependencies and launch:
95
+
96
+ ```bash
97
+ pip install -r requirements.txt
98
+ pip install -e . # enables the `apexgrid` CLI binary
99
+ ```
100
+
101
+ ```bash
102
+ python main.py # argparse entrypoint
103
+ # or
104
+ apexgrid # Typer entrypoint (requires editable install)
105
+ ```
106
+
107
+ ---
108
+
109
+ ## Interactive Menu
110
+
111
+ `python main.py` launches a guided Rich terminal interface with eight workflows:
112
+
113
+ | # | Option | Description |
114
+ |---|--------|-------------|
115
+ | 1 | **Predict a Race** | Circuit → weekend stage → model selection → forecast |
116
+ | 2 | **Load / Collect Data** | Ingest FastF1 practice, qualifying, and race telemetry |
117
+ | 3 | **Evaluate a Prediction** | Score forecast accuracy against official classifications |
118
+ | 4 | **View Previous Predictions** | Browse saved prediction tables and Markdown reports |
119
+ | 5 | **Historical Statistics** | 11 analytics modules spanning 1950–2026 |
120
+ | 6 | **System Health** | Diagnostic checks and data readiness audit |
121
+ | 7 | **Configuration** | View circuit parameters, track types, model settings |
122
+ | 8 | **Data Management** | Preview and prune cached telemetry files safely |
123
+
124
+ ---
125
+
126
+ ## CLI Usage Recipes
127
+
128
+ ### Race Predictions
129
+
130
+ ```bash
131
+ # Full 3-way ensemble, pre-qualifying stage
132
+ python main.py predict --track monza --year 2026 --stage pre_fp1 --model ensemble
133
+
134
+ # Default hybrid (60% RF / 40% XGB), post-qualifying
135
+ python main.py predict --track silverstone --year 2026 --stage after_qualifying
136
+
137
+ # Enhanced physics (race pace, tire deg, pit strategy, weather, race control)
138
+ python main.py predict --track monaco --year 2026 --stage after_fp3 --model ensemble --enhanced
139
+
140
+ # Custom ensemble weights (70% RF / 30% XGB)
141
+ python main.py predict --track baku --year 2026 --stage after_qualifying --model hybrid --rf-weight 70 --xgb-weight 30
142
+ ```
143
+
144
+ ### Walk-Forward Validation
145
+
146
+ ```bash
147
+ python main.py evaluate --track sepang --year 2026
148
+ python main.py validate --track baku --year 2026 --stage after_qualifying
149
+ ```
150
+
151
+ ### Historical Analytics
152
+
153
+ ```bash
154
+ python main.py history
155
+ ```
156
+
157
+ Subcommands: `driver` · `h2h` · `qualifying` · `race` · `circuit` · `standings` · `session` · `dominance` · `records` · `reliability` · `eras`
158
+
159
+ ### Data Collection & Cleanup
160
+
161
+ ```bash
162
+ python main.py collect-season --year 2026 # Full season ingestion
163
+ python main.py clean --target cache --preview # Dry-run preview
164
+ python main.py clean --target cache --force # Execute cleanup
165
+ ```
166
+
167
+ ---
168
+
169
+ ## Technical Architecture
170
+
171
+ <details>
172
+ <summary><b>Technical Methodology & Mathematical Formulation</b></summary>
173
+
174
+ ### Stage-Gated Grid Blending
175
+
176
+ Starting grid positions heavily influence race outcomes, but using qualifying data before qualifying introduces catastrophic lookahead bias. ApexGrid resolves this with stage-aware gating:
177
+
178
+ **Post-Qualifying:** Official FIA grid positions (including penalty cascades and pit-lane starts) blend with pure ML pace scores using circuit-topology weights:
179
+
180
+
181
+ $$
182
+ \text{Score}_{\text{blended}} = w_{\text{ml}} \cdot \text{Score}_{\text{ML}} + w_{\text{grid}} \cdot \text{Grid}_{\text{actual}}
183
+ $$
184
+
185
+
186
+ | Circuit Type | $w_{\text{grid}}$ | $w_{\text{ml}}$ | Examples |
187
+ |---|---|---|---|
188
+ | Street | 0.50 | 0.50 | Monaco, Baku, Singapore |
189
+ | Permanent | 0.35 | 0.65 | Spa, Monza, Silverstone |
190
+ | Temporary | 0.45 | 0.55 | Melbourne, Montreal |
191
+
192
+ **Pre-Qualifying:** Grid data is masked to NaN. The pipeline generates provisional qualifying forecasts (displayed as `~P1`, `~P2`, etc.) or cleanly disables blending ($w_{\text{grid}} = 0$, $w_{\text{ml}} = 1$).
193
+
194
+ ---
195
+
196
+ ### Dual-View Outcome Presentation
197
+
198
+ Monte Carlo simulations produce full finishing distributions, presented in two views:
199
+
200
+ - **Podium Banner:** Top 3 drivers selected by Win% ↓, then Podium% ↓, then ExpectedFinish ↑ (tie-breaker).
201
+ - **Full Field Table:** All drivers ranked by DNF-adjusted ExpectedFinish. Non-finishers receive a +1000.0 penalty, ensuring they rank behind all classified finishers.
202
+
203
+ ---
204
+
205
+ ### Walk-Forward Validation
206
+
207
+ Shuffled k-fold is strictly prohibited. For each validation round $r > \text{min\_train\_rounds}$, models train exclusively on rounds $\{1 \dots r{-}1\}$ and test on out-of-sample round $r$. If any fold fails, validation transitions to `BLOCKED` and all residual arrays are cleared to prevent partial contamination.
208
+
209
+ ---
210
+
211
+ ### Residual-Calibrated Pace Volatility
212
+
213
+ Monte Carlo variance is empirically calibrated from walk-forward residuals using Median Absolute Deviation:
214
+
215
+
216
+ $$
217
+ \sigma = \max\!\left(1.5,\; 1.4826 \cdot \text{MAD}(\text{residuals})\right)
218
+ $$
219
+
220
+
221
+ Under wet-weather sampling: volatility scales by 1.35×, DNF hazard scales by 1.40×.
222
+
223
+ ---
224
+
225
+ ### Decoupled Two-Stage Modeling
226
+
227
+ ML regressors (RF, XGBoost, Ridge) train exclusively on classified finishers — mechanical retirements and lap-1 incidents are excluded so pace signal stays uncorrupted. DNF hazards are modeled separately via binomial draws during Monte Carlo simulation.
228
+
229
+ ---
230
+
231
+ ### EWMA Form Tracking
232
+
233
+ Driver and constructor rolling form uses exponentially weighted moving average with decay $\alpha = 0.30$, heavily weighting the most recent 3–5 rounds to capture mid-season aerodynamic upgrades while maintaining baseline stability.
234
+
235
+ </details>
236
+
237
+ ---
238
+
239
+ ## Configuration
240
+
241
+ JSON configuration files in [`config/`](config/):
242
+
243
+ | File | Purpose |
244
+ |------|---------|
245
+ | [`model_config.json`](config/model_config.json) | Ensemble weights, hyperparameters, feature sets, circuit blending weights |
246
+ | [`tracks.json`](config/tracks.json) | 23 championship circuits — lengths, types, calendar mappings |
247
+ | [`strategy_config.json`](config/strategy_config.json) | Tire compounds, pit loss times, 15 circuit-specific strategy priors |
248
+ | [`settings.json`](config/settings.json) | Cache paths, logging thresholds, output directories |
249
+
250
+ ---
251
+
252
+ ## Verification & Testing
253
+
254
+ **183 tests** across 21 modules — 100% pass rate:
255
+
256
+ ```bash
257
+ pytest # Full suite
258
+ pytest tests/test_walk_forward.py # Walk-forward validation
259
+ pytest tests/test_core_features.py # Stage isolation & anti-leakage
260
+ pytest tests/test_dynamic_roster.py # Driver substitution handling
261
+ pytest tests/test_weekend_only_pipeline.py # Weekend-only ML pipeline
262
+ ```
263
+
264
+ ---
265
+
266
+ ## Tech Stack
267
+
268
+ | Component | Technologies |
269
+ |-----------|-------------|
270
+ | **Language** | Python 3.10 – 3.13 |
271
+ | **Machine Learning** | Scikit-Learn (Random Forest, Ridge), XGBoost |
272
+ | **Scientific** | NumPy, SciPy, Pandas |
273
+ | **Telemetry** | FastF1, OpenF1 REST API |
274
+ | **CLI / TUI** | Typer, Rich |
275
+ | **Testing** | Pytest |
276
+
277
+ ---
278
+
279
+ ## Contributing
280
+
281
+ 1. Fork the repository and create a feature branch
282
+ 2. Add tests matching existing conventions in [`tests/`](tests/)
283
+ 3. Confirm `pytest` exits with code 0 (zero regressions)
284
+ 4. Open a PR against `main` with verification logs
285
+
286
+ ---
287
+
288
+ ## License
289
+
290
+ This project is licensed under the [MIT License](LICENSE).
@@ -0,0 +1,80 @@
1
+ apexgrid-1.0.0.dist-info/licenses/LICENSE,sha256=fayz2iye9ENvdtanPmNP-vKZ3CPpoKcqPkyy7H2VqZE,1093
2
+ src/__init__.py,sha256=aZHwyBwpufx7XwLZOCbh5xSUIAoJieNez8k_KamIemM,39
3
+ src/cli/__init__.py,sha256=xOmi-PpkGGeyHt0XPXwiQ0rqx8mqikFJt4u7f7gPEnI,130
4
+ src/cli/historical_menu.py,sha256=ducjMCfIRLR4MyHm69y64DjTdJ84BHZVWYL2YaSrwjc,49261
5
+ src/cli/menu.py,sha256=pEh4mgm9Lrd8YfKZjtGjEegcZYPsHk44BdP9jNWRCRE,130595
6
+ src/cli/terminal_ui.py,sha256=2EVCz8Y4uDmR4DT3xMM_kfH9rEzY8GYZF5hIx21IHRU,26845
7
+ src/cli/typer_app.py,sha256=10Z5A8BZUWKI7HzQ-csPeCRPDzrz3qbhE4aX0gmNapc,73493
8
+ src/config/model_config.json,sha256=zK7FTfHbyqJwRjxGoxL5uoTXc5Cjx2bXMOa7ryBf5G4,3545
9
+ src/config/settings.json,sha256=wKOm4Ukr5DJoBbDcmvhf84HD3mflKKGcbxg80XlDqrc,369
10
+ src/config/strategy_config.json,sha256=k1ACSaLUU8cLBXIaF0XaHhYP-X8TUoBwBrpd9g1e5mk,4145
11
+ src/config/tracks.json,sha256=gSPhbOucDfAEdmQGvc-fPzFjPQ5zhzTuvszCgSTwJDQ,15106
12
+ src/data/__init__.py,sha256=HgPofejdFTmdobIcN6wGxJ_FduKIW7jf0pFrRH_ZI8Y,56
13
+ src/data/calendar_service.py,sha256=yo4X7DAZ9vrxvIP6dnlZPRLiyb8DDxZZa1jlMz9hu8A,11718
14
+ src/data/collect_season.py,sha256=3q201yV7v5VpiN7bkFnIY_-ja8XSugtGZZQZDr16-EI,44591
15
+ src/data/collect_track.py,sha256=abn4IfnikAEi42PBPhLeqZQUy6xP_1IaKXuAgtXxl9o,14821
16
+ src/data/data_loader.py,sha256=Eo-Xms88nQS8aMUQc2kddBnqKccxfvsrr5lrGPHPvvc,32822
17
+ src/data/data_manager.py,sha256=NLViwBrQMCF1ofq_SEHvuSEYNX7GYt_tQzw1W2nzS2s,29019
18
+ src/data/data_validator.py,sha256=YMsSfj9HLQhfrExgPwYfDe8I2AKJeByIXWhUQtHg1r0,5820
19
+ src/data/deletion_audit.py,sha256=5KpBhqL9vVSk4mc0Xst9p0TFt22e7ac9eBM9tviR5eA,3152
20
+ src/data/grid_retriever.py,sha256=QRs2uImmO4P4wjJZh3jveugNZeTiqF7K9gafVbwNxt0,62343
21
+ src/data/roster_resolver.py,sha256=HLkWXVZpqmkeJBf6vsNIxURzvTEsxt-ktzLMEl5ac_E,26887
22
+ src/data/season_discovery.py,sha256=p-ryxCg-x1B5TwuhYLkCfgnhuKZjJpYzhYlKZNfXMGw,9372
23
+ src/data/session_validation.py,sha256=SeUYkCWP-Z4g7pLflZLu7h9J53cGeMhJyaYBdQhMzrQ,3569
24
+ src/features/__init__.py,sha256=TFiJBpAdeJPvEEjtp3hUnJsacWm1amMXZUvPANGR5jA,1207
25
+ src/features/build_features.py,sha256=XIEy6nU1pP8YxT6YQ2745FHcV8k8iMqk91gH9ZNFGhI,54102
26
+ src/features/grid_conversion.py,sha256=ZwE7HfSgoLgm3ExuOlWUhbX-T1CbA5eUt_dW5L1QeyQ,7423
27
+ src/features/grid_features.py,sha256=y5pl8crR9BMJ4RGScBh4b9XZpQt3Z-oILTW5FioMkBc,27341
28
+ src/features/race_pace.py,sha256=3YFNWEiAhxjFWIBff0HdT5Y_fSJq6lzz16eScU8lViA,13441
29
+ src/features/season_features.py,sha256=fyj50X1LTt0vTsjOKRGfq4HmDajgPb_ba7fnuAMYzGU,13487
30
+ src/features/teammate_features.py,sha256=LGQkYqPxJV1qaF_zT2S0KPKKjwTel4HwRB-mYetktQI,9694
31
+ src/features/tire_degradation.py,sha256=rpngZpKcBxA5maZKaGbOBLNKSOatHT-Oz-KYrKUWLYQ,15062
32
+ src/features/track_features.py,sha256=6LDafq48HcuMxHI8C5m4edMyxmtsByPU4XZVIxjTOc0,3024
33
+ src/features/weather_features.py,sha256=3qQrsvEYhkF83DLSmsT8bhMLiN6JA1FxzWw6YwY3tP0,9985
34
+ src/features/weekend_features.py,sha256=4saJD7o9kuEB3xeEnGWHxSrvtu5psRu-_O7Z1j-RKaA,10706
35
+ src/historical/__init__.py,sha256=QDp7vNWSA4xHcxtEOHwfJQ4UtlGbNJiuSuDZwLLagYU,2602
36
+ src/historical/api_client.py,sha256=0gFEQrZF3T5YH3TSZUBCLqtThoa75x_MmAS1WqLutU4,9269
37
+ src/historical/circuits_service.py,sha256=bgbA1qc55NoCMtxd934UTpk9VPUgSQsMZCcDCAtwfBY,5650
38
+ src/historical/classification_service.py,sha256=qJDhfonlEhzOI7a_TghB46JOFuuUdenrySQIzpzkqeI,9173
39
+ src/historical/events_service.py,sha256=sxZzEt-Ze8i2FH4PFiblBY6xUQ1w6I8XFHUikqKihO4,10533
40
+ src/historical/grid_service.py,sha256=mK-i4HC8AnwzqWgO6j0oWH-7afYItsLMJR0LKzQyNHk,6822
41
+ src/historical/in_memory_cache.py,sha256=Ho2W-MLDwnzuLxsgynhlhh8yXyB7xqdQ1x2p4cs5i9Q,3480
42
+ src/historical/models.py,sha256=mpgl9ys4sLnbYSO6ZeIFqX28FMQGAHXVYCyPrwK-JZI,9561
43
+ src/historical/qualifying_service.py,sha256=qQBdyEUxDc7qo2CnGk_DTa1GDU-vyRmz5JDYGwzDzqk,13101
44
+ src/historical/rate_limiter.py,sha256=eJZfuUN_gYjcvClC-RWrM7Ym9oEh4Bq-mgcNWjJsEQU,4865
45
+ src/historical/analytics/__init__.py,sha256=n8nvN_evcWFt4Wej6cDC8ok-F7DwhP6KzK3A1fVPCXc,2462
46
+ src/historical/analytics/circuit_analytics.py,sha256=vx5CqopMZerbMF2H16souVRwdRdzvpAC5MwyTbEwCUQ,7832
47
+ src/historical/analytics/dominance.py,sha256=r8QdBUG-mbcFiY6IXD8J67Kfg0qEn8_l-wy3L_iCrQ0,9773
48
+ src/historical/analytics/driver_analytics.py,sha256=i2FYgq17fOWxug7R0KQNxk5AOUbrTObsQZ5J8A71Wy0,19120
49
+ src/historical/analytics/eras.py,sha256=fFBEUKDtNxKKQXy1ZYPFlYBBMyaUMaYlU0gpBA6ATOU,6419
50
+ src/historical/analytics/models.py,sha256=AID9w7J0ptK74Yxu-Lfai_OABpyEd-5v_xdNHjMoJrs,6146
51
+ src/historical/analytics/qualifying_analytics.py,sha256=wUTtNWqZsOqVPF3ONsxBQBYBMOXNobYdlK0YnupsfX4,7676
52
+ src/historical/analytics/race_analytics.py,sha256=_MZPxWT9OUY2Tt7qptEojBUy_aPS3Ut5UdLG3Lnf7EU,7286
53
+ src/historical/analytics/records.py,sha256=iU6WhUf4MH_38RnKIYzKMiG80hQ5tRzbO5WNhtoWhZU,13359
54
+ src/historical/analytics/reliability.py,sha256=340mdTnh0HnOfatCxnranB-aT1ELHMt431uB2D1zROY,5778
55
+ src/historical/analytics/season_analytics.py,sha256=l3Zv3pc-dkZDrK950sJiFTMsXLel2PbWdlLh_rKkeK4,9979
56
+ src/historical/analytics/session_results.py,sha256=5SVPHaGvydviuROs7bxbYPPyWRYB8ragSMlZOQKHigg,23214
57
+ src/historical/analytics/teammate_analytics.py,sha256=n7r9pKSDETmrzEn5oyb49tXDiRIASob_UxE6wpFt8s8,8328
58
+ src/models/__init__.py,sha256=ywdU2sj6H2eNWP56NryQEx26f8C-JNJTS3Odgu7K-i4,219
59
+ src/models/dnf_hazard.py,sha256=Ygu-OCRsEEPii8y-ta95U_ZnI1zWbvJe6MxR6kZauz4,5492
60
+ src/models/evaluate.py,sha256=xQB9ts7blFDL19jfmWk7S-bMnaDTB8X_QpuiZwPOCyM,34497
61
+ src/models/predict.py,sha256=nXIDDP0_mQG-vBVkdF109z6icgumwAfMbvO2VSBk8p4,17051
62
+ src/models/train.py,sha256=bBKaGd7mxNmCEsIrvnsQivqBC3hIVOBARS-Pv0MJ2Tw,6354
63
+ src/pipeline/__init__.py,sha256=z1u0rfeWeetutNLpeOUypJ1eFfXuga2AVkLA-10z3jE,142
64
+ src/pipeline/race_prediction_pipeline.py,sha256=Eumzoo4PnmYKddV4PZc0-6-7zU_yZnpZip9-IrJdRas,92949
65
+ src/simulation/__init__.py,sha256=NLfzTZgMql9nFlmuDjSKvaHXoxa9OnXLAFd0ztpYwHk,128
66
+ src/simulation/monte_carlo.py,sha256=ize3WSVPLg9mGRK5y1BUTt_X9nD3-_VemKWFiQfj0EI,18177
67
+ src/simulation/race_control_model.py,sha256=8kNyZc8b_ujyagMfa3OsoeK_HrvaQQPIhpYn-EST71U,6219
68
+ src/simulation/strategy_simulator.py,sha256=n4vogvWHFFHRbr27Com6dfOL9XYqwG_vpwnTt1_rq_E,16133
69
+ src/utils/__init__.py,sha256=MBPgk41B3_lhqmCYV3po1Ln5NWVj2SNfEe5GChpiX94,70
70
+ src/utils/circuit_mapping.py,sha256=WEmV4LYvSTWAxyVFBGXMCcaIYIc-c1-JGVHS1BuChm8,4842
71
+ src/utils/driver_mapping.py,sha256=jRwBY0Sd5kskVW9wbV9zmBun1gA480sh4q4sDXpXLik,10389
72
+ src/utils/logging_utils.py,sha256=P6GEGhSVzqyLsLVysF29ALX2PPyj7357GGNCaOzVi9w,2346
73
+ src/utils/paths.py,sha256=OG2E_6qQO4KxUSlkhczHtld7jTQHIA3rEG-HPSQbD6o,2662
74
+ src/utils/team_mapping.py,sha256=N-w-DQY_C2ZP6nBOD9E-RDoW6glKy2grUjAI9vLPMoQ,1263
75
+ src/utils/timing.py,sha256=aEcjk3-XEu-SRqIGKz8nuvRv45LRlfEMSeUxw1wFJNY,1537
76
+ apexgrid-1.0.0.dist-info/METADATA,sha256=mZMIJbYRpljiZQcXkalS58AoYb1pGcZ_t4tvHfSHCJI,12032
77
+ apexgrid-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
78
+ apexgrid-1.0.0.dist-info/entry_points.txt,sha256=RhRVIz05x-g8wQrdJe3UCjZHN_-DQsodOJZ-JEowGTE,51
79
+ apexgrid-1.0.0.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
80
+ apexgrid-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ apexgrid = src.cli.typer_app:app
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dinesh Dhayfule
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ src
src/__init__.py ADDED
@@ -0,0 +1 @@
1
+ """F1 Race Prediction Root Package."""
src/cli/__init__.py ADDED
@@ -0,0 +1,4 @@
1
+ """
2
+ CLI Package for ApexGrid — Motorsport Intelligence & Race Prediction Platform.
3
+ Predicting the Race Beyond the Grid.
4
+ """