Release experimental Transition Foundation Model v0.1 with reproducible source and validation
1baf215 verified Download tfm/data/__init__.py from maxffarrell/transition-foundation-model: direct link, hf CLI and curl.
- Browser
- Download file 1.5 kB
-
https://huggingface.co/maxffarrell/transition-foundation-model/resolve/main/tfm/data/__init__.py
- Command line
-
hf download hf://maxffarrell/transition-foundation-model/tfm/data/__init__.py
-
curl -L -o __init__.py https://huggingface.co/maxffarrell/transition-foundation-model/resolve/main/tfm/data/__init__.py
1.5 kB
| """Public data contracts; simulator imports stay lazy to avoid import cycles.""" | |
| from .episodes import Episode, load_episode, load_manifest_episodes, save_episode, save_episode_parquet | |
| from .normalization import Normalization | |
| from .schema import ( | |
| DT_MINUTES, | |
| FIELD_INDEX, | |
| FIELD_SPECS, | |
| GENERATOR_VERSION, | |
| HORIZONS, | |
| MAX_STATE_FIELDS, | |
| NUM_FIELDS, | |
| ROLE_IDS, | |
| ROLE_NAMES, | |
| SCHEMAS, | |
| UNIT_IDS, | |
| UNIT_NAMES, | |
| FieldSpec, | |
| field_mask, | |
| role_fields, | |
| ) | |
| from .windows import WindowDataset | |
| def generate_dataset(*args, **kwargs): | |
| from .generate import generate_dataset as implementation | |
| return implementation(*args, **kwargs) | |
| def generate_episode(*args, **kwargs): | |
| from .generate import generate_episode as implementation | |
| return implementation(*args, **kwargs) | |
| def generate_exogenous(*args, **kwargs): | |
| from .generate import generate_exogenous as implementation | |
| return implementation(*args, **kwargs) | |
| __all__ = [ | |
| "DT_MINUTES", | |
| "FIELD_INDEX", | |
| "FIELD_SPECS", | |
| "GENERATOR_VERSION", | |
| "HORIZONS", | |
| "MAX_STATE_FIELDS", | |
| "NUM_FIELDS", | |
| "ROLE_IDS", | |
| "ROLE_NAMES", | |
| "SCHEMAS", | |
| "UNIT_IDS", | |
| "UNIT_NAMES", | |
| "Episode", | |
| "FieldSpec", | |
| "Normalization", | |
| "WindowDataset", | |
| "field_mask", | |
| "generate_dataset", | |
| "generate_episode", | |
| "generate_exogenous", | |
| "load_episode", | |
| "load_manifest_episodes", | |
| "role_fields", | |
| "save_episode", | |
| "save_episode_parquet", | |
| ] | |