KODEX — the Kronos Family of Codes
A benchmarked AI/ML surrogate suite for fusion. Fast, calibrated stand-ins for expensive physics — every code knows when it is out of its depth.
- One contract:
predict(x) -> Prediction(y, uncertainty, in_domain) - Calibrated uncertainty on every prediction (the KHALO layer)
- An abstention gate on every prediction (the KGATE trust boundary)
- Honest provenance in the type: every surrogate is
[T]tagged, naming the real code it stands in for (retired_by) — nothing is ever mistaken for high-fidelity, and nothing is called "live."
30 codes across three rollout phases (Phase 1 = data-backed, ships first;
Phase 2 = partial data; Phase 3 = roadmap). See BENCHMARKS.md
for the honest per-code numbers and FAMILY.md for the technical note.
Install
pip install -e ".[ml,data,nn]" # kronos-toolkit + numpy/scipy are the core
The core imports with no torch and no sklearn; heavy dependencies load only when a surrogate actually runs.
Quickstart
import kronos_ml as K
K.list_surrogates() # the 30 K-codes
K.fleet(phase=1) # Phase-1 cards
# a real CGYRO transport prediction (representative fidelity, mu=400)
p = K.run("KYRO", [3.5, 1.6]) # a/L_T, magnetic shear
p.y, p.uncertainty, p.in_domain # ion heat flux Q_i, 1-sigma, trust gate
# the model-free safety gate
K.get("KGATE").clamp([2.0, 0.3, 9.0, 5.0, 0.9, 60.0]) # -> projected onto the envelope
# provenance travels with the value
p.as_tagged("CGYRO (nonlinear gyrokinetic)") # [T] retired_by CGYRO
The fleet (30 codes)
Spine: KHALO (uncertainty) · KGATE (abstention gate).
Phase-1 members: KOIL (magnet twin + quench) · KFLOW (state estimation) ·
KMAT (materials screen) · KYRO (CGYRO transport) · KWARD (disruption) ·
KORE (equilibrium) · KAIROS (control) · KQUBIT (quantum-ML, no-advantage).
Phase-2/3: breeder/burner/isotope/neutronics/operational codes, more quantum
(KQROSS, KSENSE, KTENSOR), multi-fidelity (KFUSE), and roadmap codes
(KFORGE, KDRIVE, KLAW, KGEN, KPILOT, …). KECON is a generic open
techno-economics calculator with a financial firewall — it carries no Kronos
cost/price/valuation data, ever.
Honesty
Every pre-registered miss is kept (KFLOW AC-18, KWARD <30 ms warning, KORE 1% bar). CGYRO-backed results are at representative fidelity (reduced electron mass μ=400); the real-mass "gold" validation point is the single open item. No economics or Kronos financials in any physics code. Apache-2.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kronos_fusion_ml-0.2.0.tar.gz.
File metadata
- Download URL: kronos_fusion_ml-0.2.0.tar.gz
- Upload date:
- Size: 56.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b740c6f6b680eac15f1dd8d8a22f497d8eac620b19d54e495308e74eb9b0579
|
|
| MD5 |
6969f392dfd692904f41a81d6496349d
|
|
| BLAKE2b-256 |
ff74134af2841eb52d32808a41f288a035868a3fa58ba92c9e7feac8c86f4a6c
|
File details
Details for the file kronos_fusion_ml-0.2.0-py3-none-any.whl.
File metadata
- Download URL: kronos_fusion_ml-0.2.0-py3-none-any.whl
- Upload date:
- Size: 66.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78ddc908e92ef841f6c03331b40ac8ff680a3911b4907f772be64ad32169dade
|
|
| MD5 |
42db27885c43e9e1c2a4d0df88aa07e8
|
|
| BLAKE2b-256 |
f90015c733debb7e7eafbce95b719c985d656e83de8dec94d12a2afe2a1ea885
|