Reinforcement Learning of Optimal Search strategies
Project description
RL-OptS
Reinforcement Learning of Optimal Search strategies
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:
-
“Optimal foraging strategies can be learned” by G. Muñoz-Gil, A. López-Incera, L. J. Fiderer and H. J. Briegel. Here we developed agents able to learn how to forage efficiently in environments with multiple targets.
-
“Learning to reset in target search problems” by G. Muñoz-Gil, H. J. Briegel and M. Caraglio. Here we extended the agents to be able to reset to the origin, a feature that has revolutionize target search problems in the last years.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
830d59f75111dc0e9716c10309a5259fd317c68da73b84feb8f4deea4b218c91
|
|
| MD5 |
d5b07e209c6bf76f2e886bc3dd46a4da
|
|
| BLAKE2b-256 |
25269058c14e3b74cdbfa406ec2e3575d3eecf6dac92ef4aef3c923b5af1bfbf
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24a0e2ebdbd109d698352f8b3f551532da72ae5ed661d9101dcba733538fc9e1
|
|
| MD5 |
305584edae54206b8dc21f5ac4f598ea
|
|
| BLAKE2b-256 |
a32af98f293ff187b495546252cd67888d5d2abaee886b87c18b679c85d535fa
|