Skip to main content

Fitting reinforcement learning model to behavior data under bandits.

Project description

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:

  1. Clone the repository:

    git clone https://github.com/nrgrp/rlfit.git
    cd rlfit
    
  2. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rlfit-0.1.1.tar.gz (174.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rlfit-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file rlfit-0.1.1.tar.gz.

File metadata

  • Download URL: rlfit-0.1.1.tar.gz
  • Upload date:
  • Size: 174.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rlfit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e11eaf1fecf5fb6e2248f73fa75fad6cecaee268274582a84012ceb99014a1ed
MD5 ec20d37372048988a9f43f998b406e12
BLAKE2b-256 d3b271084a78e4bed3900a9334e1b53db94e19f47282ecd3b1b19f671c4272c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for rlfit-0.1.1.tar.gz:

Publisher: release.yml on nrgrp/rlfit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rlfit-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rlfit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rlfit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebf3e83a292fd4c85d166a5b3abe38b4f11c8545e0b18484e481ee2849884c2d
MD5 5fb8abb0e975990c1d4934564cc33e28
BLAKE2b-256 3a48564f4d692e57d2276d93ef91be19b905160ea4ae0834da4989fbfff10c7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for rlfit-0.1.1-py3-none-any.whl:

Publisher: release.yml on nrgrp/rlfit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page