Scan your whole stack
Are you using bayesflux?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.10.0
bayesflux was last scanned on 30 Nov 2026 at version 0.10.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.10.0 LATEST | 30 Nov 2026 | No rules fired |
| 0.9.0 | 30 Nov 2026 | No rules fired |
Findings for v0.10.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.10.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
BayesFlux is a JAX Python package that provides Fast Linear algebra sUbspace eXtraction for Bayesian inverse problems built off https://github.com/joshuawchen/randLAX.
Given Jacobians of a forward model at prior samples, coupled_dimension_reduction
alternates between the parameter eigenspace conditional on the current data
subspace and the data eigenspace conditional on the updated parameter subspace.
It implements Algorithm 1 of Chen, Arnaud, Baptista and Zahm. The existing
information_theoretic_dimension_reduction computes the independent diagnostics
of Baptista, Marzouk and Zahm. Coupled algorithm
· Authors' implementation
· Independent diagnostics
from bayesflux.subspace_detection import coupled_dimension_reduction
# J_samples has shape (samples, observations, parameters).
bases = coupled_dimension_reduction(
key=42,
J_samples=J_samples,
noise_precision=noise_precision,
prior_precision=prior_precision,
max_input_dimension=4,
max_output_dimension=2,
)
X_reduced = (X - prior_mean) @ bases["input"]["encoder"]
Y_reduced = Y @ bases["output"]["encoder"]
J_reduced = bases["output"]["encoder"].T @ J_samples @ bases["input"]["decoder"]
Each precision can be a positive scalar or a dense positive definite matrix.
The seed initializes the data subspace. To start from a known subspace, pass
its orthonormal columns in whitened data coordinates as initial_output_basis.
Each sweep increases or preserves the
mean squared Frobenius norm of the reduced Jacobians. Inspect
bases["diagnostics"]["objective_history"] to track this objective. The
default relative tolerance is 1e-6 over at most 20 full sweeps. Set
tolerance=None to run a fixed number of sweeps. Fit each desired pair of
ranks independently since either rank can change both optimal subspaces.
The core JAX package supports Python 3.9 and newer.
python -m pip install bayesflux
For PDE sampling and likelihoods, install legacy FEniCS/DOLFIN 2019.1 with PETSc first. The following commands create a Python 3.11 environment and install hIPPYlib and hickle through the BayesFlux extra.
conda create -n bayesflux-fenics -c conda-forge python=3.11 fenics=2019.1.0 pip
conda activate bayesflux-fenics
python -m pip install 'bayesflux[hippylib]'
Projects that use the PDE functionality can declare bayesflux[hippylib] as a
dependency and direct users to the FEniCS environment setup above.
The local hIPPYlib wrapper evaluates the Gaussian likelihood of the retained observations. For an output encoder E, physical noise covariance Gamma, and PDE prediction G(m), it uses residual y_reduced - E.T @ G(m) and covariance E.T @ Gamma @ E. With the coupled noise-whitened basis the reduced covariance is identity. The gradient uses one Jacobian-transpose action for each sample. The input is parameter_offset + input_decoder @ z. For standard-normal centered coordinates, pass parameter_offset=prior_mean. For preprojected training data, projection_center=prior_mean evaluates the forward model on the same affine subspace and stores the usual raw dinox input coefficients. The wrapper accepts stock hIPPYlib noise variance or a custom noise precision and checks their consistency when both are supplied. Solve failures propagate to the caller.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.