a867fc4aae
Provides stratified marginal comparisons, joint-structure checks (correlation matrices, physically-coupled pairwise plots, direction alignment), and physical-constraint validation (unit-norm directions, non-negative raw targets) for a trained model's generated samples, building on the aggregate marginal/KL check already in giant.validate. Supports two entry points: live sampling against a checkpoint + val data (load_model_bundle/collect_samples), or loading a precomputed `giant predict --coord local` parquet directly (load_predicted_local) without needing the checkpoint at all. Predict output is now tagged with parquet schema metadata so the loader can verify a file's format and reject coord=global or untagged files with a clear error instead of guessing from column names. Also extends the config git-hash mismatch warning (added for --config loading) to checkpoint loading: both `giant predict` and analysis.load_model_bundle now look for a config.toml next to the checkpoint and warn (without failing) if it was generated from a different git commit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
502 B
Python
21 lines
502 B
Python
X_DIM = 9
|
|
|
|
LOCAL_TARGET_NAMES = [
|
|
"log_step_length",
|
|
"log_delta_e",
|
|
"log_edep",
|
|
"post_dx",
|
|
"post_dy",
|
|
"post_dz",
|
|
"travel_dx",
|
|
"travel_dy",
|
|
"travel_dz",
|
|
]
|
|
|
|
# Parquet schema metadata written by `giant predict` and checked by
|
|
# giant.analysis loaders, so a file's format can be verified without
|
|
# guessing from its column names.
|
|
PREDICT_COORD_METADATA_KEY = "giant.predict.coord"
|
|
PREDICT_SCHEMA_VERSION_KEY = "giant.predict.schema_version"
|
|
PREDICT_SCHEMA_VERSION = "1"
|