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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | kalman | |
| mask | No | ||
| bin_s | No | ||
| target | No | ||
| session_id | Yes | ||
| train_fraction | No |