euler314 commited on
Commit
cc3ffb4
·
verified ·
1 Parent(s): fcc1c0f

Publish Trackformer 1.2.28 model card and benchmark

Browse files

Update the release name, causal inference API, matched-100 bar chart and exact metrics. Remove the separate pressure-map package and stale generated files.

.gitattributes CHANGED
@@ -2,3 +2,4 @@ models/**/*.pt filter=lfs diff=lfs merge=lfs -text
2
  models/trackformer_1_1/trackformer_1_1_norm_stats.npz filter=lfs diff=lfs merge=lfs -text
3
  paper/trackformer_1_2_dolphin_pressure_map.png filter=lfs diff=lfs merge=lfs -text
4
  paper/trackformer_1_2_vs_1_1_matched100_mae.png filter=lfs diff=lfs merge=lfs -text
 
 
2
  models/trackformer_1_1/trackformer_1_1_norm_stats.npz filter=lfs diff=lfs merge=lfs -text
3
  paper/trackformer_1_2_dolphin_pressure_map.png filter=lfs diff=lfs merge=lfs -text
4
  paper/trackformer_1_2_vs_1_1_matched100_mae.png filter=lfs diff=lfs merge=lfs -text
5
+ paper/trackformer_1_2_28_vs_1_1_matched100_mae.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Trackformer 1.2
2
 
3
- Trackformer 1.2 is an experimental, causal western-Pacific tropical-cyclone
4
  forecasting model. It forecasts storm motion, maximum sustained wind, central
5
  pressure, radius of maximum wind, and R34/R50/R64 wind radii over six-hour
6
  leads through +120 h.
@@ -21,21 +21,23 @@ safety-critical decisions.
21
  - Native PyTorch and joblib artifacts in a GitHub Release and the Hugging Face
22
  model repository.
23
 
24
- The public release name is **Trackformer 1.2**. The internal experiment history
25
  is intentionally not used as the public product name.
26
 
27
  ## Availability
28
 
29
- - [GitHub Release: Trackformer 1.2](https://github.com/yu314-coder/typhoon-predict/releases/tag/trackformer-1.2)
30
  - [Hugging Face model repository](https://huggingface.co/euler314/typhoon-predict)
31
  - [Live interactive demo](https://yu314-coder.github.io/typhoon-tracks.html)
32
 
33
- The main branch contains source and documentation. The model weights are
34
- distributed as the release archive rather than committed into the Git history.
 
 
35
 
36
  ## What Changed
37
 
38
- Trackformer 1.2 keeps the causal route design and adds a promoted
39
  land/ocean-context intensity candidate. The structure head uses pooled
40
  log-radius groups, lead-wise residual calibration, non-negative radius
41
  constraints, and a validation-selected ocean-availability gate. The route and
@@ -64,7 +66,7 @@ best-track labels are used only after the forecast is frozen for verification.
64
 
65
  ## Inputs
66
 
67
- Trackformer 1.2 keeps the public causal input families used by Trackformer 1.1;
68
  the route context is expanded across the western Pacific and includes the
69
  static land/ocean features needed near coastlines. The public tensor contract
70
  is:
@@ -151,7 +153,6 @@ For each of 20 six-hour leads from +6 h through +120 h, the model returns:
151
  | Central pressure | hPa |
152
  | Radius of maximum wind | kilometres |
153
  | R34, R50, and R64 | four quadrant radii in kilometres |
154
- | Pressure-state route fields | whole western-Pacific grid with pressure contours and steering context |
155
 
156
  Radius outputs are non-negative and the structure head enforces R34 >= R50 >=
157
  R64 for each quadrant.
@@ -168,51 +169,40 @@ storm-disjoint:
168
  - test: storms from 2020 onward, held out until scoring.
169
 
170
  The earlier README comparison mixed a different release-manifest aggregate with
171
- this matched-storm benchmark. That is why it appeared to show a win in every
172
- category. The chart below is now the canonical comparison; lower error is
173
- better and all values come from the matched 100-storm evaluation.
174
 
175
- ![Trackformer 1.2 and 1.1 matched 100-storm error comparison](paper/trackformer_1_2_vs_1_1_matched100_mae.png)
176
 
177
  The source values and input policy are recorded in
178
- [paper/trackformer_1_2_vs_1_1_matched100_metrics.json](paper/trackformer_1_2_vs_1_1_matched100_metrics.json).
179
 
180
- | Metric | Trackformer 1.1 | Trackformer 1.2 | Better in this benchmark |
181
  |---|---:|---:|---|
182
- | Mean track error, all leads (km) | 802.406 | 398.419 | Trackformer 1.2 |
183
- | Mean track error, +120 h (km) | 1,604.259 | 808.607 | Trackformer 1.2 |
184
- | Wind MAE, +120 h (kt) | 20.657 | 18.509 | Trackformer 1.2 |
185
- | Pressure MAE, +120 h (hPa) | 14.932 | 13.637 | Trackformer 1.2 |
186
  | RMW MAE, +120 h (km) | 33.016 | 33.035 | Trackformer 1.1, marginally |
187
  | R34 MAE, +120 h (km) | 69.357 | 76.112 | Trackformer 1.1 |
188
- | Wind MAE, all leads (kt) | 18.121 | 17.638 | Trackformer 1.2 |
189
- | Pressure MAE, all leads (hPa) | 13.044 | 12.755 | Trackformer 1.2 |
190
  | RMW MAE, all leads (km) | 26.396 | 26.996 | Trackformer 1.1 |
191
- | R34 MAE, all leads (km) | 57.253 | 57.079 | Trackformer 1.2 |
192
 
193
  This benchmark supports a strong track improvement and lower wind/pressure
194
- error. It does **not** support the claim that Trackformer 1.2 is better on
195
  every radius metric; RMW remains slightly worse and +120 h R34 is worse. Those
196
  limitations are kept visible instead of selecting a more favorable cohort.
197
 
198
- ## Pressure-Map Diagnostic
199
-
200
- The route output is a whole-western-Pacific pressure-state diagnostic with
201
- MSLP contours, 500-hPa height, wind context, and the causal route. It is a
202
- model diagnostic, not an official forecast overlay.
203
-
204
- ![Trackformer 1.2 causal western-Pacific pressure map](paper/trackformer_1_2_dolphin_pressure_map.png)
205
-
206
- The image is included to show the spatial output format. The quantitative
207
- comparison above, not a single case map, is the model benchmark.
208
-
209
  ## Release-Candidate Metrics
210
 
211
  For completeness, the released land/ocean-context head was also compared with
212
  its frozen causal baseline on 9,994 untouched test windows at +120 h. Lower is
213
  better.
214
 
215
- | Metric at +120 h | Frozen baseline | Trackformer 1.2 candidate |
216
  |---|---:|---:|
217
  | Maximum wind MAE (kt) | 19.876 | 19.618 |
218
  | Central pressure MAE (hPa) | 13.634 | 13.519 |
@@ -248,7 +238,7 @@ The bundle uses native PyTorch checkpoints, NumPy statistics, and a joblib
248
  calibration artifact. GGUF is not an appropriate interchange format for this
249
  CNN/Transformer weather model.
250
 
251
- Download the archive from the [Trackformer 1.2 release](https://github.com/yu314-coder/typhoon-predict/releases/tag/trackformer-1.2),
252
  verify its SHA-256 value shown in the release notes, and extract it outside the
253
  Git checkout.
254
 
@@ -256,7 +246,7 @@ Git checkout.
256
 
257
  The repository includes a checkpoint-compatible inference module in
258
  [`trackformer_1_2.py`](trackformer_1_2.py). It loads both released neural
259
- seeds and averages them as one Trackformer 1.2 model. The same module now
260
  publishes the feature constructors used to build the tensor contracts, rather
261
  than requiring callers to reverse-engineer the training code. Install the
262
  runtime dependencies with:
@@ -413,7 +403,7 @@ python examples/predict_trackformer_1_2.py \
413
  ```
414
 
415
  The optional `predict_ocean_structure(...)` method returns the separately
416
- validated causal OHC/D26/D20 calibration around the frozen 1.2.26 anchor. It
417
  is intentionally returned as a separate result and is not silently stacked
418
  on the neural intensity residual head; stacking them would be a new,
419
  unvalidated model. The wrapper does not include a raw-data downloader because
@@ -425,7 +415,7 @@ prevents future or official forecast fields from entering by accident.
425
 
426
  [Trackformer 1.1](https://github.com/yu314-coder/typhoon-predict/releases/tag/trackformer-1.1)
427
  remains available as a historical baseline. It is not mixed into the
428
- Trackformer 1.2 weights or ensemble.
429
 
430
  ## Limitations
431
 
 
1
+ # Trackformer 1.2.28
2
 
3
+ Trackformer 1.2.28 is an experimental, causal western-Pacific tropical-cyclone
4
  forecasting model. It forecasts storm motion, maximum sustained wind, central
5
  pressure, radius of maximum wind, and R34/R50/R64 wind radii over six-hour
6
  leads through +120 h.
 
21
  - Native PyTorch and joblib artifacts in a GitHub Release and the Hugging Face
22
  model repository.
23
 
24
+ The public release name is **Trackformer 1.2.28**. The internal experiment history
25
  is intentionally not used as the public product name.
26
 
27
  ## Availability
28
 
29
+ - [GitHub Release: Trackformer 1.2.28](https://github.com/yu314-coder/typhoon-predict/releases/tag/trackformer-1.2.28)
30
  - [Hugging Face model repository](https://huggingface.co/euler314/typhoon-predict)
31
  - [Live interactive demo](https://yu314-coder.github.io/typhoon-tracks.html)
32
 
33
+ The public package contains only the Trackformer route/intensity model. No
34
+ gridded weather-field generator or official forecast product is included as
35
+ part of the model package. The model weights are distributed as the release
36
+ archive rather than committed into the Git history.
37
 
38
  ## What Changed
39
 
40
+ Trackformer 1.2.28 keeps the causal route design and adds a promoted
41
  land/ocean-context intensity candidate. The structure head uses pooled
42
  log-radius groups, lead-wise residual calibration, non-negative radius
43
  constraints, and a validation-selected ocean-availability gate. The route and
 
66
 
67
  ## Inputs
68
 
69
+ Trackformer 1.2.28 keeps the public causal input families used by Trackformer 1.1;
70
  the route context is expanded across the western Pacific and includes the
71
  static land/ocean features needed near coastlines. The public tensor contract
72
  is:
 
153
  | Central pressure | hPa |
154
  | Radius of maximum wind | kilometres |
155
  | R34, R50, and R64 | four quadrant radii in kilometres |
 
156
 
157
  Radius outputs are non-negative and the structure head enforces R34 >= R50 >=
158
  R64 for each quadrant.
 
169
  - test: storms from 2020 onward, held out until scoring.
170
 
171
  The earlier README comparison mixed a different release-manifest aggregate with
172
+ this matched-storm benchmark. The chart below is the canonical comparison;
173
+ lower error is better and every value comes from the same matched 100-storm
174
+ evaluation. Official forecast products are excluded from model inputs.
175
 
176
+ ![Trackformer 1.2.28 and 1.1 matched 100-storm error comparison](paper/trackformer_1_2_28_vs_1_1_matched100_mae.png)
177
 
178
  The source values and input policy are recorded in
179
+ [paper/trackformer_1_2_28_vs_1_1_matched100_metrics.json](paper/trackformer_1_2_28_vs_1_1_matched100_metrics.json).
180
 
181
+ | Metric | Trackformer 1.1 | Trackformer 1.2.28 | Better in this benchmark |
182
  |---|---:|---:|---|
183
+ | Mean track error, all leads (km) | 802.406 | 398.419 | Trackformer 1.2.28 |
184
+ | Mean track error, +120 h (km) | 1,604.259 | 808.607 | Trackformer 1.2.28 |
185
+ | Wind MAE, +120 h (kt) | 20.657 | 18.509 | Trackformer 1.2.28 |
186
+ | Pressure MAE, +120 h (hPa) | 14.932 | 13.637 | Trackformer 1.2.28 |
187
  | RMW MAE, +120 h (km) | 33.016 | 33.035 | Trackformer 1.1, marginally |
188
  | R34 MAE, +120 h (km) | 69.357 | 76.112 | Trackformer 1.1 |
189
+ | Wind MAE, all leads (kt) | 18.121 | 17.638 | Trackformer 1.2.28 |
190
+ | Pressure MAE, all leads (hPa) | 13.044 | 12.755 | Trackformer 1.2.28 |
191
  | RMW MAE, all leads (km) | 26.396 | 26.996 | Trackformer 1.1 |
192
+ | R34 MAE, all leads (km) | 57.253 | 57.079 | Trackformer 1.2.28 |
193
 
194
  This benchmark supports a strong track improvement and lower wind/pressure
195
+ error. It does **not** support the claim that Trackformer 1.2.28 is better on
196
  every radius metric; RMW remains slightly worse and +120 h R34 is worse. Those
197
  limitations are kept visible instead of selecting a more favorable cohort.
198
 
 
 
 
 
 
 
 
 
 
 
 
199
  ## Release-Candidate Metrics
200
 
201
  For completeness, the released land/ocean-context head was also compared with
202
  its frozen causal baseline on 9,994 untouched test windows at +120 h. Lower is
203
  better.
204
 
205
+ | Metric at +120 h | Frozen baseline | Trackformer 1.2.28 candidate |
206
  |---|---:|---:|
207
  | Maximum wind MAE (kt) | 19.876 | 19.618 |
208
  | Central pressure MAE (hPa) | 13.634 | 13.519 |
 
238
  calibration artifact. GGUF is not an appropriate interchange format for this
239
  CNN/Transformer weather model.
240
 
241
+ Download the archive from the [Trackformer 1.2.28 release](https://github.com/yu314-coder/typhoon-predict/releases/tag/trackformer-1.2.28),
242
  verify its SHA-256 value shown in the release notes, and extract it outside the
243
  Git checkout.
244
 
 
246
 
247
  The repository includes a checkpoint-compatible inference module in
248
  [`trackformer_1_2.py`](trackformer_1_2.py). It loads both released neural
249
+ seeds and averages them as one Trackformer 1.2.28 model. The same module now
250
  publishes the feature constructors used to build the tensor contracts, rather
251
  than requiring callers to reverse-engineer the training code. Install the
252
  runtime dependencies with:
 
403
  ```
404
 
405
  The optional `predict_ocean_structure(...)` method returns the separately
406
+ validated causal OHC/D26/D20 calibration around the frozen incumbent anchor. It
407
  is intentionally returned as a separate result and is not silently stacked
408
  on the neural intensity residual head; stacking them would be a new,
409
  unvalidated model. The wrapper does not include a raw-data downloader because
 
415
 
416
  [Trackformer 1.1](https://github.com/yu314-coder/typhoon-predict/releases/tag/trackformer-1.1)
417
  remains available as a historical baseline. It is not mixed into the
418
+ Trackformer 1.2.28 weights or ensemble.
419
 
420
  ## Limitations
421
 
__pycache__/trackformer_1_2.cpython-314.pyc DELETED
Binary file (41.5 kB)
 
examples/__pycache__/predict_trackformer_1_2.cpython-314.pyc DELETED
Binary file (4.01 kB)
 
examples/predict_trackformer_1_2.py CHANGED
@@ -1,5 +1,5 @@
1
  #!/usr/bin/env python3
2
- """Run the public Trackformer 1.2 API on a causal issue packet.
3
 
4
  The NPZ must contain either the route group:
5
  field [B,6,25,61], context [B,647], base_position [B,20,2]
 
1
  #!/usr/bin/env python3
2
+ """Run the public Trackformer 1.2.28 API on a causal issue packet.
3
 
4
  The NPZ must contain either the route group:
5
  field [B,6,25,61], context [B,647], base_position [B,20,2]
models/trackformer_1_2/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "model_name": "Trackformer 1.2",
3
- "release_tag": "trackformer-1.2",
4
  "status": "promoted_research_candidate",
5
  "task": "causal western-Pacific tropical-cyclone track and intensity forecasting",
6
  "forecast_horizon_hours": 120,
@@ -39,7 +39,7 @@
39
  "r50_mae_km": 25.417385,
40
  "r64_mae_km": 14.766924
41
  },
42
- "trackformer_1_2": {
43
  "maximum_wind_mae_kt": 19.617579,
44
  "central_pressure_mae_hpa": 13.518673,
45
  "mean_radius_mae_km": 28.943916,
 
1
  {
2
+ "model_name": "Trackformer 1.2.28",
3
+ "release_tag": "trackformer-1.2.28",
4
  "status": "promoted_research_candidate",
5
  "task": "causal western-Pacific tropical-cyclone track and intensity forecasting",
6
  "forecast_horizon_hours": 120,
 
39
  "r50_mae_km": 25.417385,
40
  "r64_mae_km": 14.766924
41
  },
42
+ "trackformer_1_2_28": {
43
  "maximum_wind_mae_kt": 19.617579,
44
  "central_pressure_mae_hpa": 13.518673,
45
  "mean_radius_mae_km": 28.943916,
paper/{trackformer_1_2_vs_1_1_matched100_mae.png → trackformer_1_2_28_vs_1_1_matched100_mae.png} RENAMED
File without changes
paper/{trackformer_1_2_vs_1_1_matched100_metrics.json → trackformer_1_2_28_vs_1_1_matched100_metrics.json} RENAMED
@@ -1,8 +1,29 @@
1
  {
2
- "comparison": "Trackformer 1.1 vs Trackformer 1.2, matched 100-storm held-out test",
3
  "storm_count": 100,
4
  "issue_rule": "sorted common storms with current, t-12 h, and t-24 h causal analysis snapshots; earliest available test initialization per storm",
5
- "leads_hours": [6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 102, 108, 114, 120],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  "input_policy": {
7
  "weather": "current, t-12 h, and t-24 h analysis fields only",
8
  "track_history": "observed history at or before each issue time",
@@ -24,11 +45,11 @@
24
  "rmw_mae_all_leads_km": 26.396,
25
  "r34_mae_all_leads_km": 57.253
26
  },
27
- "trackformer_1_2": {
28
  "mean_track_error_km_all_leads": 398.419,
29
  "mean_track_error_km_120h": 808.607,
30
  "median_track_error_km_all_leads": 305.711,
31
- "p90_track_error_km_all_leads": 874.770,
32
  "wind_mae_120h_kt": 18.509,
33
  "pressure_mae_120h_hpa": 13.637,
34
  "rmw_mae_120h_km": 33.035,
@@ -40,9 +61,20 @@
40
  }
41
  },
42
  "interpretation": {
43
- "better_at_120h": ["trackformer_1_2 wind", "trackformer_1_2 pressure"],
44
- "better_all_leads": ["trackformer_1_2 track", "trackformer_1_2 wind", "trackformer_1_2 pressure", "trackformer_1_2 R34"],
45
- "not_better_at_120h": ["trackformer_1_2 RMW", "trackformer_1_2 R34"],
46
- "claim_boundary": "This matched benchmark does not support a claim that Trackformer 1.2 wins every output."
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
  }
 
1
  {
2
+ "comparison": "Trackformer 1.1 vs Trackformer 1.2.28, matched 100-storm held-out test",
3
  "storm_count": 100,
4
  "issue_rule": "sorted common storms with current, t-12 h, and t-24 h causal analysis snapshots; earliest available test initialization per storm",
5
+ "leads_hours": [
6
+ 6,
7
+ 12,
8
+ 18,
9
+ 24,
10
+ 30,
11
+ 36,
12
+ 42,
13
+ 48,
14
+ 54,
15
+ 60,
16
+ 66,
17
+ 72,
18
+ 78,
19
+ 84,
20
+ 90,
21
+ 96,
22
+ 102,
23
+ 108,
24
+ 114,
25
+ 120
26
+ ],
27
  "input_policy": {
28
  "weather": "current, t-12 h, and t-24 h analysis fields only",
29
  "track_history": "observed history at or before each issue time",
 
45
  "rmw_mae_all_leads_km": 26.396,
46
  "r34_mae_all_leads_km": 57.253
47
  },
48
+ "trackformer_1_2_28": {
49
  "mean_track_error_km_all_leads": 398.419,
50
  "mean_track_error_km_120h": 808.607,
51
  "median_track_error_km_all_leads": 305.711,
52
+ "p90_track_error_km_all_leads": 874.77,
53
  "wind_mae_120h_kt": 18.509,
54
  "pressure_mae_120h_hpa": 13.637,
55
  "rmw_mae_120h_km": 33.035,
 
61
  }
62
  },
63
  "interpretation": {
64
+ "better_at_120h": [
65
+ "trackformer_1_2_28 wind",
66
+ "trackformer_1_2_28 pressure"
67
+ ],
68
+ "better_all_leads": [
69
+ "trackformer_1_2_28 track",
70
+ "trackformer_1_2_28 wind",
71
+ "trackformer_1_2_28 pressure",
72
+ "trackformer_1_2_28 R34"
73
+ ],
74
+ "not_better_at_120h": [
75
+ "trackformer_1_2_28 RMW",
76
+ "trackformer_1_2_28 R34"
77
+ ],
78
+ "claim_boundary": "This matched benchmark does not support a claim that Trackformer 1.2.28 wins every output."
79
  }
80
  }
paper/trackformer_1_2_dolphin_pressure_map.png DELETED

Git LFS Details

  • SHA256: 32be7d3a562a208a81e6d06eaee939874724efc6d7ef07a9c59080ab2e508491
  • Pointer size: 132 Bytes
  • Size of remote file: 9.8 MB
trackformer_1_2.py CHANGED
@@ -1,4 +1,4 @@
1
- """Public Trackformer 1.2 inference API.
2
 
3
  The release checkpoints are trained on causal issue-time inputs. This module
4
  does not download or accept JMA/JTWC/ECMWF/GFS/GEFS forecast products. It
@@ -32,6 +32,7 @@ from scipy.ndimage import maximum_filter, minimum_filter
32
  LEADS = 20
33
  LEAD_HOURS = tuple(range(6, 121, 6))
34
  STRUCTURE_DIM = 15
 
35
  ROUTE_CONTEXT_DIM = 647
36
  INTENSITY_FEATURE_DIM = 1020
37
  INTENSITY_INPUT_DIM = 1320
@@ -868,8 +869,8 @@ def build_causal_structure_features(
868
  def build_causal_anchor_structure(observed_structure: np.ndarray) -> np.ndarray:
869
  """Build a causal persistence/trend anchor when no incumbent is supplied.
870
 
871
- This is a documented fallback, not the private frozen Trackformer 1.2.26
872
- anchor used to train the released residual head. Supply the real anchor
873
  to ``predict_intensity`` when reproducing the trained residual pipeline.
874
  ``observed_structure`` is physical ``[B, 3, 15]`` history ordered oldest to
875
  newest, with columns ``vmax, pressure, RMW, R34/R50/R64``.
@@ -996,7 +997,7 @@ class _ResidualCurveModel(nn.Module):
996
 
997
 
998
  class Trackformer12:
999
- """Load and run the released Trackformer 1.2 causal members."""
1000
 
1001
  def __init__(self, model_root: str | Path, device: str | torch.device | None = None):
1002
  self.model_root = self._resolve_root(Path(model_root))
@@ -1050,7 +1051,7 @@ class Trackformer12:
1050
  return path
1051
  if nested.exists():
1052
  return nested.parent
1053
- raise FileNotFoundError(f"could not find Trackformer 1.2 manifest below {path}")
1054
 
1055
  @classmethod
1056
  def from_pretrained(cls, model_root: str | Path | None = None, repo_id: str = "euler314/typhoon-predict", device: str | torch.device | None = None) -> "Trackformer12":
@@ -1132,7 +1133,7 @@ class Trackformer12:
1132
  ``causal_features`` is the exact pre-residual 1,020-dimensional vector
1133
  built from current/past observations and analysis summaries. The
1134
  ``anchor_structure`` is a physical ``[B, 20, 15]`` frozen causal
1135
- Trackformer 1.2.26 curve ordered as ``vmax, pressure, RMW, R34[4],
1136
  R50[4], R64[4]``.
1137
  """
1138
  causal_features = _batch(causal_features, (INTENSITY_FEATURE_DIM,), "causal_features")
@@ -1155,7 +1156,7 @@ class Trackformer12:
1155
  """Apply the released causal OHC/D26/D20 calibration to the anchor.
1156
 
1157
  This is a separately validated calibration head trained around the
1158
- frozen 1.2.26 structure anchor. It is intentionally returned as its
1159
  own forecast rather than silently stacking it on the neural residual
1160
  head, which would be an unvalidated model change.
1161
  """
 
1
+ """Public Trackformer 1.2.28 inference API.
2
 
3
  The release checkpoints are trained on causal issue-time inputs. This module
4
  does not download or accept JMA/JTWC/ECMWF/GFS/GEFS forecast products. It
 
32
  LEADS = 20
33
  LEAD_HOURS = tuple(range(6, 121, 6))
34
  STRUCTURE_DIM = 15
35
+ MODEL_VERSION = "1.2.28"
36
  ROUTE_CONTEXT_DIM = 647
37
  INTENSITY_FEATURE_DIM = 1020
38
  INTENSITY_INPUT_DIM = 1320
 
869
  def build_causal_anchor_structure(observed_structure: np.ndarray) -> np.ndarray:
870
  """Build a causal persistence/trend anchor when no incumbent is supplied.
871
 
872
+ This is a documented fallback, not the private frozen incumbent anchor
873
+ used to train the released residual head. Supply the real anchor
874
  to ``predict_intensity`` when reproducing the trained residual pipeline.
875
  ``observed_structure`` is physical ``[B, 3, 15]`` history ordered oldest to
876
  newest, with columns ``vmax, pressure, RMW, R34/R50/R64``.
 
997
 
998
 
999
  class Trackformer12:
1000
+ """Load and run the released Trackformer 1.2.28 causal members."""
1001
 
1002
  def __init__(self, model_root: str | Path, device: str | torch.device | None = None):
1003
  self.model_root = self._resolve_root(Path(model_root))
 
1051
  return path
1052
  if nested.exists():
1053
  return nested.parent
1054
+ raise FileNotFoundError(f"could not find Trackformer {MODEL_VERSION} manifest below {path}")
1055
 
1056
  @classmethod
1057
  def from_pretrained(cls, model_root: str | Path | None = None, repo_id: str = "euler314/typhoon-predict", device: str | torch.device | None = None) -> "Trackformer12":
 
1133
  ``causal_features`` is the exact pre-residual 1,020-dimensional vector
1134
  built from current/past observations and analysis summaries. The
1135
  ``anchor_structure`` is a physical ``[B, 20, 15]`` frozen causal
1136
+ frozen causal curve ordered as ``vmax, pressure, RMW, R34[4],
1137
  R50[4], R64[4]``.
1138
  """
1139
  causal_features = _batch(causal_features, (INTENSITY_FEATURE_DIM,), "causal_features")
 
1156
  """Apply the released causal OHC/D26/D20 calibration to the anchor.
1157
 
1158
  This is a separately validated calibration head trained around the
1159
+ frozen incumbent structure anchor. It is intentionally returned as its
1160
  own forecast rather than silently stacking it on the neural residual
1161
  head, which would be an unvalidated model change.
1162
  """