NimbusProbit (since nimbus-bci 0.10.0) | Julia: NimbusProbit, a different model with the same nameMathematical model: Bayesian probit regression, one problem per class against the rest
NimbusProbit is a linear classifier built for one regime: a few calibration trials over features that outnumber them many times over — a frozen trunk’s embeddings. Its point is not accuracy. Its point is that the probabilities it reports follow the evidence: with few trials the posterior is diffuse, and the head says so.
Python Personalizer head:
Personalizer.for_features(classes, head="probit"), or Personalizer(encoder=enc, head="probit"). On this head fit_calibrated fits the risk gate — a certificate replaces the fixed gate. See Trust & calibration.Quick Start
When to Use NimbusProbit
- A frozen trunk emits embeddings, and the subject has a few dozen labelled trials.
- You gate commands on the head’s confidence and need that confidence to mean something.
- You want to read the posterior — for
predict_proba, for active learning, for a calibrated gate — rather than the most likely weights.
When Not to Use It
- If accuracy is the only thing you want, and your features are covariance or bandpower features: a plain
LogisticRegressionon the same features is as accurate. Use that. - If updates must be fast at scale:
partial_fitis a refit on all the labelled trials. It costs about 50 ms at 100 trials, 0.3 s at 200 and 0.8 s at 300 — tens to a few hundred trials, not thousands. - If you need per-trial weights or forgetting: both raise
ValueErroron this head; every labelled trial counts in full. - If the session is drifting:
NimbusSTSmodels latent state; this head does not.
Model Architecture
LogisticRegression(C=1) is this model’s mode under a logit link and the same prior — which is exactly what the measured comparison below uses.
Hyperparameters
Training Requirements
- Feature rows shaped
(n_trials, n_features): embeddings, CSP, Riemann or bandpower features — not raw EEG. - Labels as class labels; the head stores
classes_,n_classes_andn_features_in_. - The fitted
model_holds the labelled trials — features and class indices — so the artifact grows with them, asNimbusSoftmax’s does.
What Was Measured
One preregistered cell, read once (Zhou2016, 4 subjects; BNCI2015-001 session B, 12 subjects; 4–20 trials per class):- As accurate as its own point estimate and as a plain
LogisticRegression(C=1), and aboveNimbusLDA(kappa0="cv")in accuracy. - Better calibrated than both: log-loss lower by 0.096 [0.066, 0.126] on Zhou2016 and 0.064 [0.036, 0.087] on BNCI2015-001, at every size.
- The gain lives on frozen-trunk embeddings. On covariance features the logistic regression is as good or better.
Model Selection Context
Next Read
Trust & calibration
Why a certificate, not a fixed gate, decides on this head.
Encoder contract
Wrap a frozen trunk so its embeddings reach the head.