File size: 3,482 Bytes
326d3cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Implementation checks and later recording validation

The current workflow finishes backend implementation before asking the user to test recordings. Automated synthetic/dependency checks verify arithmetic, wiring, checkpoint gating and failure recovery; they do not establish baseball accuracy.

For later recording evaluation, save original footage, capture timing/calibration evidence, reviewed endpoints/ball identities/events and expected unavailable outputs. Include hits, misses, dry swings and occlusion. Provider/CUDA failures affect their branches, while supported 2D reports remain available. Inspect data residuals separately from priors and compare raw/fitted curves before using derivative peaks.

`preflight` checks the core/ONNX worker; `preflight-optional` checks actual PyTorch/MHR differentiation and a constructed 35-DOF OpenSim/FK/IK fixture in its own worker. The installer records a candidate profile and its resolved package inventory. Each executed worker writes elapsed time and process RSS in `runtime_profiles/`; Torch allocation peaks are recorded for CUDA workers and explicitly exclude ONNX/native allocations. Installed packages are not a substitute for executing models; SAM full-image/full-hand and integrated GPU memory checks still require accessible assets and a suitable CUDA session.

`tools/evaluation/evaluate_events.py` reports interval errors and unknown/absent/missed/extra events. Proposed one-frame/two-frame goals are targets, not achieved results. Evaluate in source frames and physical milliseconds where the capture clock is known; report abstention coverage and reference uncertainty separately.

Independent biomechanical evaluation uses:

```bash
python -m baseball_batting.cli evaluate-reference pairs.json --gates preregistered-metric-gates.json --output evaluation.json
```

Each pair identifies the exact `input_sha256`, `result_path`, player/session IDs, `independent_reference=true`, `synchronization_verified=true`, `reference_source`, and `metrics` containing reference value, unit and matching definition version. Optional `repeatability_group` identifies repeated controlled conditions. Gates must have `preregistered=true`, a source record, explicit population/task/view scope and per-metric `maximum`/`minimum` requirements.

The evaluator reports bias, absolute error, p95 error, measurement coverage, athlete count and within-group error repeatability. It cannot fabricate calibrated uncertainty coverage; that remains unavailable without an independently calibrated uncertainty method. Results supply evidence for explicit method/rule review rather than silently promoting all metrics to validated status.

OpenBiomechanics is an eligible reference-distribution candidate, with provenance/population limits and commercial-license review deferred as planned. It is not automatically paired video training data. `tools/evaluation/inspect_reference_csv.py` inventories supplied reference tables without inventing paired labels. Independent synchronized recordings remain necessary for video-pipeline accuracy evaluation.

Feedback defaults to descriptive observations. The sourced tee-practice rule is an educational research hypothesis requiring matched tee trials and confirmed contact, not a knee-angle prescription or claimed benefit. No overall score, ideal swing, causal fault, force estimate or injury assessment is generated. Expert agreement and intervention effectiveness need their own later evaluation.