stathead 0.2.0__tar.gz → 0.2.1__tar.gz
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.
- {stathead-0.2.0 → stathead-0.2.1}/.gitignore +2 -0
- {stathead-0.2.0 → stathead-0.2.1}/PKG-INFO +7 -7
- {stathead-0.2.0 → stathead-0.2.1}/README.md +6 -6
- {stathead-0.2.0 → stathead-0.2.1}/pyproject.toml +1 -1
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/__init__.py +1 -1
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/_fetch.py +5 -1
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/_renames.py +0 -0
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/adp.py +0 -0
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/crosswalk.py +0 -0
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/features.py +0 -0
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/predictions.py +0 -0
- {stathead-0.2.0 → stathead-0.2.1}/src/stathead/prospects.py +0 -0
- {stathead-0.2.0 → stathead-0.2.1}/tests/test_smoke.py +0 -0
|
@@ -25,6 +25,8 @@ public/data/*
|
|
|
25
25
|
!public/data/qb-beast-ablation.json
|
|
26
26
|
!public/data/ktc-forecasts-*.json
|
|
27
27
|
!public/data/redraft-projections.json
|
|
28
|
+
!public/data/depth-chart-2026.json
|
|
29
|
+
!public/data/career-2027.json
|
|
28
30
|
!public/data/cfbd-college-stats.json
|
|
29
31
|
!public/data/cfbd-sp-ratings.json
|
|
30
32
|
!public/data/cfbd-recruiting.json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stathead
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Python client for the StatHead fantasy football model — rookie career predictions, historical ADP, and flattened feature matrices.
|
|
5
5
|
Project-URL: Homepage, https://github.com/dachhack/stathead
|
|
6
6
|
Project-URL: Source, https://github.com/dachhack/stathead
|
|
@@ -91,7 +91,7 @@ cache directory or call `clear_cache()` to force a refresh.
|
|
|
91
91
|
| `load_career_backtest()` | Historical rookies with pred + actual PPG | ~1087 × ~100 cols |
|
|
92
92
|
| `load_adp_historical()` | Model-training ADP 2010-2025 | 4507 × 10 |
|
|
93
93
|
| `load_adp_ffc(season=None)` | FFC PPR raw ADP (per season as fetched) — data via [Fantasy Football Calculator](https://fantasyfootballcalculator.com/adp/ppr) | variable |
|
|
94
|
-
| `load_prospect_grades(year=2026)` |
|
|
94
|
+
| `load_prospect_grades(year=2026)` | Scouting-report grades | ~200 × 7 |
|
|
95
95
|
| `load_feature_matrix()` | Raw `feature-matrix.json` (dict) | — |
|
|
96
96
|
| `load_manual_overrides()` | Manual CFBD usage overrides (dict) | — |
|
|
97
97
|
|
|
@@ -100,7 +100,7 @@ cache directory or call `clear_cache()` to force a refresh.
|
|
|
100
100
|
Career-prediction and backtest rows include flattened model features
|
|
101
101
|
under names like `collegeDominatorRating`, `relativeAthleticScore`,
|
|
102
102
|
`recruitRating`, `nflDraftPick`, plus two source-agnostic families
|
|
103
|
-
aggregated from the project's scouting pipeline:
|
|
103
|
+
aggregated from the project's scouting-report pipeline:
|
|
104
104
|
|
|
105
105
|
- **`scout*`** — single-scout grade signals (e.g. `scoutGradeDraft`,
|
|
106
106
|
`scoutTierOrdinal`, `scoutBreadthDraft`, `scoutNComps`).
|
|
@@ -109,9 +109,9 @@ aggregated from the project's scouting pipeline:
|
|
|
109
109
|
`guideNWeaknesses`, `guideSentimentNet`, …).
|
|
110
110
|
|
|
111
111
|
Both families are derived numeric features (counts, means, ordinals) —
|
|
112
|
-
no verbatim
|
|
113
|
-
flag missing-data so models can distinguish
|
|
114
|
-
"low score".
|
|
112
|
+
no verbatim scouting-report text is shipped. `hasScoutGrade` /
|
|
113
|
+
`hasGuideData` flag missing-data so models can distinguish
|
|
114
|
+
"no scout coverage" from "low score".
|
|
115
115
|
|
|
116
116
|
## Licensing & attribution
|
|
117
117
|
|
|
@@ -120,7 +120,7 @@ from the StatHead project's own modeling pipeline; upstream sources
|
|
|
120
120
|
(nflverse, FFC, CFBD, etc.) retain their own terms — see each source's
|
|
121
121
|
license before redistributing. Sources whose terms do not permit
|
|
122
122
|
third-party redistribution (e.g. KeepTradeCut dynasty values, verbatim
|
|
123
|
-
prose from paid scouting
|
|
123
|
+
prose from paid scouting reports) are intentionally not exposed by
|
|
124
124
|
this client.
|
|
125
125
|
|
|
126
126
|
ADP data exposed by `load_adp_ffc` is courtesy of
|
|
@@ -63,7 +63,7 @@ cache directory or call `clear_cache()` to force a refresh.
|
|
|
63
63
|
| `load_career_backtest()` | Historical rookies with pred + actual PPG | ~1087 × ~100 cols |
|
|
64
64
|
| `load_adp_historical()` | Model-training ADP 2010-2025 | 4507 × 10 |
|
|
65
65
|
| `load_adp_ffc(season=None)` | FFC PPR raw ADP (per season as fetched) — data via [Fantasy Football Calculator](https://fantasyfootballcalculator.com/adp/ppr) | variable |
|
|
66
|
-
| `load_prospect_grades(year=2026)` |
|
|
66
|
+
| `load_prospect_grades(year=2026)` | Scouting-report grades | ~200 × 7 |
|
|
67
67
|
| `load_feature_matrix()` | Raw `feature-matrix.json` (dict) | — |
|
|
68
68
|
| `load_manual_overrides()` | Manual CFBD usage overrides (dict) | — |
|
|
69
69
|
|
|
@@ -72,7 +72,7 @@ cache directory or call `clear_cache()` to force a refresh.
|
|
|
72
72
|
Career-prediction and backtest rows include flattened model features
|
|
73
73
|
under names like `collegeDominatorRating`, `relativeAthleticScore`,
|
|
74
74
|
`recruitRating`, `nflDraftPick`, plus two source-agnostic families
|
|
75
|
-
aggregated from the project's scouting pipeline:
|
|
75
|
+
aggregated from the project's scouting-report pipeline:
|
|
76
76
|
|
|
77
77
|
- **`scout*`** — single-scout grade signals (e.g. `scoutGradeDraft`,
|
|
78
78
|
`scoutTierOrdinal`, `scoutBreadthDraft`, `scoutNComps`).
|
|
@@ -81,9 +81,9 @@ aggregated from the project's scouting pipeline:
|
|
|
81
81
|
`guideNWeaknesses`, `guideSentimentNet`, …).
|
|
82
82
|
|
|
83
83
|
Both families are derived numeric features (counts, means, ordinals) —
|
|
84
|
-
no verbatim
|
|
85
|
-
flag missing-data so models can distinguish
|
|
86
|
-
"low score".
|
|
84
|
+
no verbatim scouting-report text is shipped. `hasScoutGrade` /
|
|
85
|
+
`hasGuideData` flag missing-data so models can distinguish
|
|
86
|
+
"no scout coverage" from "low score".
|
|
87
87
|
|
|
88
88
|
## Licensing & attribution
|
|
89
89
|
|
|
@@ -92,7 +92,7 @@ from the StatHead project's own modeling pipeline; upstream sources
|
|
|
92
92
|
(nflverse, FFC, CFBD, etc.) retain their own terms — see each source's
|
|
93
93
|
license before redistributing. Sources whose terms do not permit
|
|
94
94
|
third-party redistribution (e.g. KeepTradeCut dynasty values, verbatim
|
|
95
|
-
prose from paid scouting
|
|
95
|
+
prose from paid scouting reports) are intentionally not exposed by
|
|
96
96
|
this client.
|
|
97
97
|
|
|
98
98
|
ADP data exposed by `load_adp_ffc` is courtesy of
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "stathead"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Python client for the StatHead fantasy football model — rookie career predictions, historical ADP, and flattened feature matrices."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -28,7 +28,7 @@ from .features import load_feature_matrix, load_manual_overrides
|
|
|
28
28
|
from .predictions import load_career_backtest, load_career_predictions_2026
|
|
29
29
|
from .prospects import load_prospect_grades
|
|
30
30
|
|
|
31
|
-
__version__ = "0.2.
|
|
31
|
+
__version__ = "0.2.1"
|
|
32
32
|
|
|
33
33
|
__all__ = [
|
|
34
34
|
"__version__",
|
|
@@ -18,7 +18,11 @@ from typing import Any
|
|
|
18
18
|
from urllib.request import Request, urlopen
|
|
19
19
|
|
|
20
20
|
_BASE_URL = "https://raw.githubusercontent.com/dachhack/stathead"
|
|
21
|
-
|
|
21
|
+
# The repo's data + models live on its default branch (there is no `main`),
|
|
22
|
+
# and the every-2h refresh workflow commits there, so this is the ref that
|
|
23
|
+
# always has fresh feature-matrix / score-store / crosswalk files. Override
|
|
24
|
+
# per-session with pin_version() or per-shell with STATHEAD_REF.
|
|
25
|
+
_DEFAULT_REF = "claude/nfl-fantasy-workbench-6D1yd"
|
|
22
26
|
_ref: str = os.environ.get("STATHEAD_REF", _DEFAULT_REF)
|
|
23
27
|
|
|
24
28
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|