Skip to main content

github license badge RSD build docs Checked with mypy Linting: Ruff

A modern Python implementation for population receptive field model fitting.

Getting started

See our online documentation on how to get started with prfmodel.

Installation

Requirements: prfmodel requires Python version >= 3.10 and <= 3.13.

prfmodel is available on PyPI. The package relies on Keras for multi-backend model fitting. At least one backend must be installed to use prfmodel.

To install prfmodel with the Tensorflow backend, run:

python -m pip install "prfmodel[tensorflow]"

To install it with the PyTorch backend, run:

python -m pip install "prfmodel[torch]"

To install it with the JAX backend, run:

python -m pip install "prfmodel[jax]"

The quotes around prfmodel[...] are needed in some shells (e.g., zsh, the default shell on macOS), which would otherwise interpret the square brackets.

To install the latest development version from GitHub instead, run:

python -m pip install "prfmodel[tensorflow] @ git+https://github.com/popylar-org/prfmodel.git"

The default backend in Keras is Tensorflow, but this can be changed by setting the KERAS_BACKEND environment variable, for example, at the beginning of a Python script or Jupyter notebook:

import os

os.environ["KERAS_BACKEND"] = "jax"

import prfmodel

Important: The backend must be set before importing prfmodel or keras. See the Keras documentation for details.

Documentation

The online documentation is available at: https://popylar-org.github.io/prfmodel/.

The local documentation can be build as HTML files with:

# In prfmodel directory
cd docs/
make html

The documentation can then be opened in the browser from _build/html/index.html.

Development

Practical information on developing prfmodel can be found in README.dev.md. For more in-depth information about architecture and implementation decisions, see the Development section in the online documentation.

Credits

This package was created with Copier and the NLeSC/python-template.

The model fitting workflow in prfmodel was inspired by braincoder.

Generative AI usage

Claude Code (Opus version 4.5 - 5.0) was used to partially generate and improve code in prfmodel. All improvements were manually evaluated and approved by the authors.

2026, Netherlands eScience Center, Vrije Universiteit Amsterdam, Netherlands Institute for Neuroscience

Metadata

Release files for prfmodel 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prfmodel 0.2.0
File Size Uploaded Provenance Actions
prfmodel-0.2.0.tar.gz 697.7 kB With provenance Details for prfmodel-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prfmodel 0.2.0
File Interpreter ABI Platform Actions
prfmodel-0.2.0-py3-none-any.whl Python 3 none any Details for prfmodel-0.2.0-py3-none-any.whl

Total release size: 962.1 kB

Release files / prfmodel-0.2.0.tar.gz

Download URL prfmodel-0.2.0.tar.gz
Size 697.7 kB
Tags Source
SHA-256 checksum
How to use checksums
feee329276c87c37a89e792f06aa7255b24e57e86de853f3eb3afabbbe1af10a
BLAKE2b-256 checksum
How to use checksums
1da02ae93f1b199f837ec6c6f5b4bb81822bc8bef92ace81fe10d6cc287d5eed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / prfmodel-0.2.0-py3-none-any.whl

Download URL prfmodel-0.2.0-py3-none-any.whl
Size 264.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf57c100b45968d411e51cfcaa2427061c5ddeb9b8e4c00f0ff46c2d96586e7f
BLAKE2b-256 checksum
How to use checksums
dc329e4ffed540ac1cc466b4804acc46ae2e7947ab7c04bcab9eb74a9b575014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for prfmodel 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prfmodel-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page