Skip to main content
This guide covers upgrading from nimbus-bci 0.8.x or 0.9.x to 0.10.0.
Verify your installed version:

One-Hop Upgrade Summary

Profiles saved by 0.8 or 0.9 still load. The release is not additive: one default changed, and two behaviours you may rely on are different. Coming from 0.8? Everything 0.9.0 added is additive and defaults are unchanged: the conformal gate, certificate staleness, and the SSVEP recipes are in Changelog 0.9. For 0.6 or 0.7 code, start with Migration to 0.8.

1. fit_calibrated fits a certificate on four heads

In 0.8 and 0.9, fit_calibrated pinned an accept rate: it tuned the confidence floor so that the target share of held-out trials passed, and promised the rate and nothing else. From 0.10.0, on NimbusProbit, NimbusLDA, NimbusQDA and NimbusSoftmax, it fits the risk gate at alpha 0.1 — a certificate that at most 10 % of all trials end in a wrong command being sent. A fresh certificate replaces the confidence floor and the entropy ceiling: the shipped path accepts exactly what the certificate accepts.
  • method now defaults to None — the head’s own gate — and accepts "risk" as a new value.
  • Without a certificate nothing changes: the fixed gate stays, every BrainState carries extras["gate_calibrated"] = False, and a warning says so once per process.
  • NimbusFusion is unchanged: fit_calibrated still pins an accept rate on it, and a certificate is stacked on the fixed checks.
  • A certificate costs labelled trials the head has not seen — at least nine for alpha 0.1, in practice 8–12 per class — and is void after any update of the head.
Why the default changed, and what the certificate measured within a session and in the next one: Trust & calibration.

2. SSVEP encoder defaults changed

FBCCA now builds the cumulative Chebyshev sub-band bank of Nakanishi et al. (2018), with one reference harmonic per sub-band; TRCA keeps the band-limited three-band bank. Default encoder features changed — five sub-bands instead of three. A profile saved under the 0.9.0 defaults must be refit. Re-attaching a new-default encoder to it fails loudly on the feature count. To keep using such a profile, re-attach with the 0.9.0 configuration:
Encoder state_dicts written by 0.9.0 still load: FBCCA silently, TRCA with a warning that its stored geometry predates the per-sub-band fix. Also in 0.10.0: TRCA no longer depends on the units of the data — volts and microvolts give the same decisions — and FBCCA no longer reads noise from rank-deficient trials, such as an average reference.

3. The conformal gate: two fixes

Under tied posteriors. In 0.9.0 a classifier that emits exactly tied posteriors — a saturated head on many classes does — could be certified almost everywhere at near-zero coverage. Calibration now uses the same rank order as prediction. Posteriors without exact ties are unaffected to the bit; a gate calibrated on tied posteriors should be re-calibrated. In a live loop. predict_one — and any predict call that holds exactly one trial — now takes the next draw of the gate’s deployment stream, exactly as each row of a batch takes its own. Before, a loop re-seeded on every call and the gate turned into a fixed one: on one decoder a loop certified 100 % of the trials where a batch certifies 84 %. The stream position is saved with the profile (live_draws); profiles written earlier load unchanged and start at the first draw. In a live loop, scoring the same trial twice can return different sets, and the accept rate is what a batch reports for the same decoder.

4. Heads: what is saved is what is loaded

  • A softmax head reloads. 0.9.0 stored a feature count that included the bias column and refused its own artifact. The labelled history is now part of the saved model (x_history / y_history), so a softmax artifact grows with its labelled trials. A softmax profile saved under 0.9.0 cannot be updated with partial_fit: refit it.
  • evaluate_cv scores the head it was given. Before, every fold was rebuilt from the head’s name, so a head passed as an object was never the one scored.
  • Constructor settings survive load and from_profile (meta key head_params); artifacts written earlier load as before.

5. The default head when features outnumber the trials

Personalizer(head="lda") is NimbusLDA(prior_fraction=0.05). With more features than trials its prior scatter was singular, and it returned a uniform distribution for every trial. Its scatter is now the OAS-shrunk pooled covariance in that case. Identity-prior heads are bit-identical, and a head fitted before keeps its stored parameters until it is fitted again.

6. Wheels only

No sdist is published from 0.10.0 on — it carried the plaintext of the compiled modules. Wheels are published for macOS (x86_64, Apple Silicon), Linux x86_64 (manylinux_2_28) and Windows AMD64, for CPython 3.11 to 3.13. A platform without a wheel — Linux aarch64 and musl, 32-bit x86, Windows on ARM — can no longer install the package. See Installation.

Next read

Changelog 0.10

Everything in the release, with the corrected figures.

Trust & calibration

The gates and what each promises.

SSVEP

The recipe as it stands in 0.10.0.

Installation

Platforms and optional extras.