Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

bayesflux

Latest version: v0.10.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
PyPI package Publisher: joshuawchen
1 Stars
0 Forks
2 Versions
74 Downloads
Python Repo language

Scan summary

bayesflux was last scanned on 30 Nov 2026 at version 0.10.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 30 Nov 2026.
  • Findings: No rules fired in version 0.10.0.
  • Downloads: 74 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.10.0 LATEST 30 Nov 2026 No rules fired
0.9.0 30 Nov 2026 No rules fired

No rules fired in 0.10.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

BayesFlux

BayesFlux is a JAX Python package that provides Fast Linear algebra sUbspace eXtraction for Bayesian inverse problems built off https://github.com/joshuawchen/randLAX.

Features

  • Active Subspace for parameter dimension reduction
  • Informative Output Subspace for data dimension reduction
  • Coupled parameter and data subspaces fitted to a specified pair of ranks

Coupled dimension reduction

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.

Installation

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.

Encoded Gaussian PDE likelihood

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.

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases bayesflux

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229