Skip to main content
Python: NimbusProbit (since nimbus-bci 0.10.0) | Julia: NimbusProbit, a different model with the same name
Mathematical 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

Fit this head on features the encoder has not been fitted on. In-sample features of a supervised encoder are optimistic, and the probabilities come out overconfident.

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 LogisticRegression on the same features is as accurate. Use that.
  • If updates must be fast at scale: partial_fit is 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 ValueError on this head; every labelled trial counts in full.
  • If the session is drifting: NimbusSTS models latent state; this head does not.

Model Architecture

With more than two classes, one such problem per class against the rest. The posterior of every problem is approximated by expectation propagation, on the trials — so the feature count can exceed the trial count. Reading the posterior, rather than plugging in its mode, is what keeps the probabilities honest. A plain 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_ and n_features_in_.
  • The fitted model_ holds the labelled trials — features and class indices — so the artifact grows with them, as NimbusSoftmax’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 above NimbusLDA(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.
Read through the Personalizer — its saved artifacts, its model file, its online update, in the pure-Python and in the compiled build — the head decides as the measured arm does on every test trial of that cell’s 1,200 draws. This is a calibration claim, not a decoding one.

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.