Skip to main content

Reinforcement Learning of Optimal Search strategies

Project description

RL-OptS

Reinforcement Learning of Optimal Search strategies

DOI PyPI version Python version

This library builds the necessary tools needed to study, replicate and develop reinforcement learning agents for target search problems, as well as a benchmark baselines with which to compare. This library is based in two different publications:

Installation

You can access all these tools installing the python package rl_opts via Pypi:

pip install rl-opts

You can also opt for cloning the source repository and executing the following on the parent folder you just cloned the repo:

pip install -e rl_opts

This will install both the library and the necessary packages.

Tutorials

We have prepared a series of tutorials to guide you through the most important functionalities of the package. You can find them in the Tutorials folder of the Github repository or in the Tutorials tab of our webpage, with notebooks that will help you navigate the package as well as reproducing the results of our paper via minimal examples. In particular, we have three tutorials:

  • Reinforcement learning : shows how to train a RL agent based on Projective Simulation agents to search targets in randomly distributed environments as the ones considered in our paper.
  • Learning to reset in target search problems : shows how to train a RL agent similar to the previous, but with the ability to reset to the origin, an action that is learned along its spatial dynamics.
  • Imitation learning : shows how to train a RL agent to imitate the policy of an expert equipped with a pre-trained policy. The latter is based on the benchmark strategies common in the literature.
  • Benchmarks : shows how launch various benchmark strategies with which to compare the trained RL agents.

Cite

We kindly ask you to cite our paper if any of the previous material was useful for your work:

@article{munoz2024optimal,
  title={Optimal foraging strategies can be learned},
  author={Mu{\~n}oz-Gil, Gorka and L{\'o}pez-Incera, Andrea and Fiderer, Lukas J and Briegel, Hans J},
  journal={New Journal of Physics},
  volume={26},
  number={1},
  pages={013010},
  year={2024},
  publisher={IOP Publishing}
}

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

rl_opts-0.2.0.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

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

rl_opts-0.2.0-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file rl_opts-0.2.0.tar.gz.

File metadata

  • Download URL: rl_opts-0.2.0.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rl_opts-0.2.0.tar.gz
Algorithm Hash digest
SHA256 830d59f75111dc0e9716c10309a5259fd317c68da73b84feb8f4deea4b218c91
MD5 d5b07e209c6bf76f2e886bc3dd46a4da
BLAKE2b-256 25269058c14e3b74cdbfa406ec2e3575d3eecf6dac92ef4aef3c923b5af1bfbf

See more details on using hashes here.

File details

Details for the file rl_opts-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rl_opts-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rl_opts-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24a0e2ebdbd109d698352f8b3f551532da72ae5ed661d9101dcba733538fc9e1
MD5 305584edae54206b8dc21f5ac4f598ea
BLAKE2b-256 a32af98f293ff187b495546252cd67888d5d2abaee886b87c18b679c85d535fa

See more details on using hashes here.

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