fit_decoder
Fit a decoder from spike counts to a behavioral signal and score it on held-out data to assess neural decoding performance.
Instructions
Fit a decoder from spike counts to a behaviour signal and score it on held-out data.
The first `train_fraction` of the session trains; the remainder tests. With no
`target`, the first velocity-like behaviour signal is used. Unrecorded gaps are skipped.
`mask` names a boolean behaviour signal (such as FALCON's eval_mask); only bins where it
is true are used for fitting and scoring.
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": {
"session_id": "<session_id>"
},
"name": "fit_decoder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | kalman | |
| mask | No | ||
| bin_s | No | ||
| target | No | ||
| session_id | Yes | ||
| train_fraction | No |