Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Gilles86v0.9.0MITIn 1 marketplace
Fits fMRI encoding models for population receptive fields and inverts them to decode stimuli from brain activity. Requires a TensorFlow, JAX or PyTorch backend via Keras 3; the skill is a step-by-step manual with silent-error warnings.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
fmri, neuroscience, encoding-models, prf, bayesian-decoding, keras, python-library, data-analysis
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Braincoder is a package to fit encoding models to neural data (for now fMRI) and to then invert those models to decode stimulus information from neural data. It wraps stimulus handling, model definition, HRF convolution, and optimization into a single Keras 3-based toolkit that runs on TensorFlow, JAX, or PyTorch.
EncodingModel to implement your own.Install braincoder with one of the three backends:
pip install "braincoder[tensorflow]" # or [jax], or [torch]
Then predict the responses of two voxels to a stimulus:
import numpy as np
import pandas as pd
from braincoder.models import GaussianPRF
paradigm = pd.DataFrame({"x": np.linspace(-5, 5, 100)},
index=pd.Index(np.arange(100), name="time"))
parameters = pd.DataFrame({"mu": [0.0, 1.0], "sd": [1.0, 2.0], "amplitude": [1.0, 1.0], "baseline": [0.0, 0.0]},
index=pd.Index(["v1", "v2"], name="voxel"))
model = GaussianPRF()
predicted = model.predict(paradigm=paradigm, parameters=parameters)
See the tutorials for full fitting and decoding pipelines.
Pin the version in your project's environment, e.g. braincoder[tensorflow]==0.7.1, so that its results stay reproducible.
git clone https://github.com/Gilles86/braincoder.git
cd braincoder
conda env create -f environment.yml
conda activate braincoder
This installs braincoder in editable mode (pip install -e .) with a TensorFlow backend and dev tools. See the installation docs for the other backends.
The braincoder skill gives an AI coding assistant a step-by-step manual for new projects, the common silent errors, and measured runtimes. It is also readable on its own. In Claude Code, install it with:
/plugin install braincoder --marketplace Gilles86/braincoder
Other assistants (Codex, Cursor, Gemini CLI, …) can read skills/braincoder/SKILL.md directly, e.g. by pointing to it from your project's AGENTS.md.
prfmodel is a Python package for population receptive field modelling, also built on Keras 3. It covers further pRF models, such as CSS, delayed normalization and connective fields.
de Hollander, G., Renkert, M., Ruff, C. C., & Knapen, T. H. (2024). Braincoder: A package for fitting encoding models to neural data and decoding stimulus features. Zenodo. DOI: 10.5281/zenodo.10778413.
@software{deHollander2024braincoder,
author = {Gilles de Hollander and Maike Renkert and Christian C. Ruff and Tomas H. Knapen},
title = {braincoder: A package for fitting encoding models to neural data and decoding stimulus features},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.10778413},
url = {https://github.com/Gilles86/braincoder}
}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub gilles86/braincoder --plugin braincoderPlugins from other owners that cover similar ground