Skip to content

Add optional input clamping and non-negative heat flux clipping to TGLFNN-UKAEA. - #2970

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1031188037
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1031188037

Conversation

@copybara-service

Copy link
Copy Markdown

Add optional input clamping and non-negative heat flux clipping to TGLFNN-UKAEA.

  • Add static clip_inputs (default False, matching QLKNN) and validated
    clip_margin (default 0.95, in (0, 1] without inverting machine training
    bounds) to TGLFNNukaeaTransportModelConfig and RuntimeParams. Training
    input bounds come from Zanisi et al.: the Table 1 hypercube ranges for
    multimachine, and the support of the Figure 2 training distributions for
    step.
  • Add static clip_heat_fluxes (default False) to clip turbulent ion and
    electron heat fluxes (efi_gb, efe_gb) to be non-negative (as in QLKNN)
    while preserving signed particle flux (pfi_gb).
  • Add unit tests covering input range alignment, clip_inputs bounds/margin
    behavior, clip_margin validation, and call_implementation clipping
    (including jax.jit compilation with static flags).

…LFNN-UKAEA.

- Add static `clip_inputs` (default `False`, matching QLKNN) and validated
  `clip_margin` (default `0.95`, in `(0, 1]` without inverting machine training
  bounds) to `TGLFNNukaeaTransportModelConfig` and `RuntimeParams`. Training
  input bounds come from Zanisi et al.: the Table 1 hypercube ranges for
  `multimachine`, and the support of the Figure 2 training distributions for
  `step`.
- Add static `clip_heat_fluxes` (default `False`) to clip turbulent ion and
  electron heat fluxes (`efi_gb`, `efe_gb`) to be non-negative (as in QLKNN)
  while preserving signed particle flux (`pfi_gb`).
- Add unit tests covering input range alignment, `clip_inputs` bounds/margin
  behavior, `clip_margin` validation, and `call_implementation` clipping
  (including `jax.jit` compilation with static flags).

PiperOrigin-RevId: 1031188037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant