rlfit: Fitting Reinforcement Learning Model to Behavior Data under Bandits
Python package companion to the paper "Fitting Reinforcement Learning Modelto Behavior Data under Bandits". This library is collated from the early version code in this repository which was used for the numerical experiments in the paper.
Installation
Using pip
You can install the package via PyPI:
pip install rlfit
Development setup
We manage dependencies through uv. Once you have installed uv you can perform the following commands to set up a development environment:
-
Clone the repository:
git clone https://github.com/nrgrp/rlfit.git cd rlfit
-
Create a virtual environment and install dependencies:
make install
This will:
- Create a Python 3.12 virtual environment.
- Install all dependencies from pyproject.toml.
Usage
The core module is the RLFit class, which was implemented
following the scikit-learn style.
See the example notebooks and the corresponding
paper for some basic usages.
If a development environment is configured, executing
make jupyter
will install and start the jupyter lab.
Release files for rlfit 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rlfit-0.1.1.tar.gz | 174.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rlfit-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 180.1 kB
Release files / rlfit-0.1.1.tar.gz
| Download URL | rlfit-0.1.1.tar.gz |
|---|---|
| Size | 174.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e11eaf1fecf5fb6e2248f73fa75fad6cecaee268274582a84012ceb99014a1ed
|
|
BLAKE2b-256 checksum How to use checksums |
d3b271084a78e4bed3900a9334e1b53db94e19f47282ecd3b1b19f671c4272c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jul 18, 2025.
Transparency logRelease files / rlfit-0.1.1-py3-none-any.whl
| Download URL | rlfit-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebf3e83a292fd4c85d166a5b3abe38b4f11c8545e0b18484e481ee2849884c2d
|
|
BLAKE2b-256 checksum How to use checksums |
3a48564f4d692e57d2276d93ef91be19b905160ea4ae0834da4989fbfff10c7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jul 18, 2025.
Transparency log