Skip to main content

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.

Metadata

Release files for kronos-fusion-ml 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kronos-fusion-ml 0.3.0
File Size Uploaded Provenance Actions
kronos_fusion_ml-0.3.0.tar.gz 68.1 kB Without provenance Details for kronos_fusion_ml-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kronos-fusion-ml 0.3.0
File Interpreter ABI Platform Actions
kronos_fusion_ml-0.3.0-py3-none-any.whl Python 3 none any Details for kronos_fusion_ml-0.3.0-py3-none-any.whl

Total release size: 147.6 kB

Release files / kronos_fusion_ml-0.3.0.tar.gz

Download URL kronos_fusion_ml-0.3.0.tar.gz
Size 68.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eaad911b333eb61153cace53ddc5bbec4c8fd8866cb369bb586c222e257dfe27
BLAKE2b-256 checksum
How to use checksums
51aed05fb19eee3cac9331a3ae0b148720c033913cfecb2a433ebab3bdd1b2f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / kronos_fusion_ml-0.3.0-py3-none-any.whl

Download URL kronos_fusion_ml-0.3.0-py3-none-any.whl
Size 79.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09ca214cf823642863b22a250d26d717f3ae588d0ff63bf01b783265f474b867
BLAKE2b-256 checksum
How to use checksums
4dda01d595dd5f4fc1f3b339a2f66791444b855d0e1c374540b321235eabfe41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for kronos-fusion-ml 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page