Skip to content

SFI v2.1.0

Latest

Choose a tag to compare

@ronceray ronceray released this 11 Nov 19:42
· 1 commit to main since this release

Minor release: new default linear estimators for both engines, which correct for localisation noise and for the leading finite-dt bias. Default linear fits change, usually for the better, at about 1–2× the cost of the old default. The 2.0 estimators stay available by name ("legacy-robust", "legacy-clean", …); see Upgrading from 2.0 in CHANGELOG.md and the What's new page of the documentation.

New defaults

  • Overdamped preset="instrument": an instrumental-variable fit that estimates its own localisation noise and constant diffusion, combined with the same-frame clean fit, so it is as sharp as the clean fit on clean data and consistent under white localisation noise.
  • Overdamped drift-corrected diffusion: compute_diffusion_constant(method="drift-corrected") and infer_diffusion_linear(basis) work from the force fit's residuals. Fit the force first.
  • Underdamped preset="model-free": four-frame kinematics with an Itô term from an 8-frame per-frame diffusion estimate; exact at first order in dt for any D(x, v) and under white localisation noise, with long-run error bars. preset="constant-noise" gives much lower variance under strong constant noise.
  • Renamed presets ("robust" → "legacy-robust", "clean" → "legacy-clean", …) are still accepted, with a FutureWarning.

Added

  • Underdamped frame stride (experimental): stride=s or stride="auto" reads every s-th frame, which can be far more precise at fine sampling under strong localisation noise.
  • Underdamped diagnostics: drift check of the diffusion constant, path-resolution check of each feature, warnings for non-uniform frame intervals and noise-dominated sampling.
  • Sparse selection: protected= and groups= in sparsify_force / sparsify_diffusion, and method="exhaustive" for the exact Pareto front.
  • A guide for AI agents bundled with the package: python -m SFI guide.

Changed

  • Underdamped simulator: exact substep noise (every simulated underdamped trajectory changes for a given key; diffusion estimates on simulated data were biased by about 1/oversampling²).
  • Gram-conditioning warning based on the pseudo-inverse cutoff instead of a fixed threshold.
  • Underdamped entropy production: bias count and error bar for every preset, optional jackknife.
  • JAX pins: jax>=0.10.1,!=0.10.2,!=0.11.0.

Performance

  • The default fits evaluate their rows in blocks within max_memory_gb (100 particles, 15 000 frames: peak 10.6 → 3.3 GB).

Fixed

  • Parametric infer_force reaches its likelihood's optimum at coarse dt (damped oscillator at γ dt = 0.5: γ 12 % low before, within 1 % now); a single fixed D= or Lambda= is now honoured.
  • preset="constant-noise" error bars and PASTIS under localisation noise.

This release is archived on Zenodo; see CITATION.cff and the "How to cite" section of the documentation.

See CHANGELOG.md for details.