Grouped Statistics
stats.groupedCluster-aware group statistics across executions.
REQUIREMENT (read first): each execution must have been run with an evaluation plan that STORED per-SUBJECT accuracies for at least 3 subjects — e.g. leave-one-subject-out (LOSO) or grouped CV over
= 3 subjects. Session groups within one subject (multi-session single-subject runs) are refused with
nimbus.stats.non_subject_groups— those are not independent subjects. A plain single-subject CV run with no subject/session grouping stores no group stats and fails withnimbus.stats.insufficient_groups.
HOW to get grouped stats: in the train graph set public_data.subject
to >= 3 subjects (e.g. "S01,S02,S03", mode "all"), add an
evaluation_plan node wired right after public_data with
method: "loso" and evaluationTargetNodeId = your model node id,
and keep an epoching node. See catalog.node_schema("evaluation_plan")
and the mi_bciiv2a_csp_cv template for a working plan.
What it does: pools the per-subject accuracies each run's evaluation
plan stored, then reports the between-group summary — mean accuracy
with a t-interval and a one-sample t-test vs chance. Responses label
groupKind, real groupKeys (subject ids like S01 when stamped
or recoverable), perGroup (key + accuracy pairs),
overall.pooledExecutionIds, and kindBreakdown /
overall.kindBreakdown (per_subject vs loso etc. with n + mean —
#470; between-group pooled mean is unchanged).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"execution_ids": "<execution_ids>"
},
"name": "stats.grouped"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chance | No | Chance level in [0, 1]; default 1/nClasses per execution. | |
| execution_ids | Yes | 1–25 executions (from execution.run) to pool. Runs without subject group stats are reported with nulls but do not fail the request — unless NONE qualifies (``nimbus.stats.insufficient_groups``) or only session groups are present (``nimbus.stats.non_subject_groups``). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||