minari


Nameminari JSON
Version 0.4.3 PyPI version JSON
download
home_page
SummaryA standard format for offline reinforcement learning datasets, with popular reference datasets and related utilities.
upload_time2024-01-27 14:47:55
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License
keywords reinforcement learning offline rl rl ai gymnasium farama
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://pre-commit.com/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)


<p align="center">
    <img src="minari-text.png" width="500px"/>
</p>

Minari is a Python library for conducting research in offline reinforcement learning, akin to an offline version of Gymnasium or an offline RL version of HuggingFace's datasets library. This library is currently in beta.

The documentation website is at [minari.farama.org](https://minari.farama.org/main/). We also have a public discord server (which we use for Q&A and to coordinate development work) that you can join here: https://discord.gg/bnJ6kubTg6.

Note: Minari was previously developed under the name Kabuki.


## Installation
To install Minari from [PyPI](https://pypi.org/project/minari/):
```bash
pip install minari
```

Note that currently Minari is under a beta release. If you'd like to start testing or contribute to Minari please install this project from source with:

```
git clone https://github.com/Farama-Foundation/Minari.git
cd Minari
pip install -e .
```

## Command Line API

To check available remote datasets:

```bash
minari list remote
```

To download a dataset:

```bash
minari download door-human-v1
```

To check available local datasets:

```bash
minari list local
```
To show the details of a dataset:

```bash
minari show door-human-v1
```

For the list of commands:
```bash
minari --help
```

## Basic Usage

### Reading a dataset

```python
import minari

dataset = minari.load_dataset("door-human-v1")

for episode_data in dataset.iterate_episodes():
    ...
```

### Writing a dataset

```python
import minari
import gymnasium as gym
from minari import DataCollector


env = gym.make('LunarLander-v2')
env = DataCollector(env)

for _ in range(100):
    env.reset()
    done = False
    while not done:
        action = ...
        obs, rew, terminated, truncated, info = env.step(action)
        done = terminated or truncated

dataset = env.create_dataset("LunarLander-v2-test-v0")
```

For other examples, see [Basic Usage](https://minari.farama.org/main/content/basic_usage/). For a complete tutorial on how to create new datasets using Minari, see our [Pointmaze D4RL Dataset](https://minari.farama.org/main/tutorials/dataset_creation/point_maze_dataset/) tutorial, which re-creates the Maze2D datasets from [D4RL](https://github.com/Farama-Foundation/D4RL).

## Project Maintainers
Main Contributors: [Rodrigo Perez-Vicente](https://github.com/rodrigodelazcano), [Omar Younis](https://github.com/younik), [John Balis](https://github.com/balisujohn)

Maintenance for this project is also contributed by the broader Farama team: [farama.org/team](https://farama.org/team).

___

_Minari is a shortening of Minarai, the Japanese word for "learning by observation"._

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "minari",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "Reinforcement Learning,Offline RL,RL,AI,gymnasium,Farama",
    "author": "",
    "author_email": "Farama Foundation <contact@farama.org>",
    "download_url": "https://files.pythonhosted.org/packages/3c/bb/9dafd891d509d43774f5648dd20db8a9bca05ccec9310acf80790ac2cb8e/minari-0.4.3.tar.gz",
    "platform": null,
    "description": "[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://pre-commit.com/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n\n<p align=\"center\">\n    <img src=\"minari-text.png\" width=\"500px\"/>\n</p>\n\nMinari is a Python library for conducting research in offline reinforcement learning, akin to an offline version of Gymnasium or an offline RL version of HuggingFace's datasets library. This library is currently in beta.\n\nThe documentation website is at [minari.farama.org](https://minari.farama.org/main/). We also have a public discord server (which we use for Q&A and to coordinate development work) that you can join here: https://discord.gg/bnJ6kubTg6.\n\nNote: Minari was previously developed under the name Kabuki.\n\n\n## Installation\nTo install Minari from [PyPI](https://pypi.org/project/minari/):\n```bash\npip install minari\n```\n\nNote that currently Minari is under a beta release. If you'd like to start testing or contribute to Minari please install this project from source with:\n\n```\ngit clone https://github.com/Farama-Foundation/Minari.git\ncd Minari\npip install -e .\n```\n\n## Command Line API\n\nTo check available remote datasets:\n\n```bash\nminari list remote\n```\n\nTo download a dataset:\n\n```bash\nminari download door-human-v1\n```\n\nTo check available local datasets:\n\n```bash\nminari list local\n```\nTo show the details of a dataset:\n\n```bash\nminari show door-human-v1\n```\n\nFor the list of commands:\n```bash\nminari --help\n```\n\n## Basic Usage\n\n### Reading a dataset\n\n```python\nimport minari\n\ndataset = minari.load_dataset(\"door-human-v1\")\n\nfor episode_data in dataset.iterate_episodes():\n    ...\n```\n\n### Writing a dataset\n\n```python\nimport minari\nimport gymnasium as gym\nfrom minari import DataCollector\n\n\nenv = gym.make('LunarLander-v2')\nenv = DataCollector(env)\n\nfor _ in range(100):\n    env.reset()\n    done = False\n    while not done:\n        action = ...\n        obs, rew, terminated, truncated, info = env.step(action)\n        done = terminated or truncated\n\ndataset = env.create_dataset(\"LunarLander-v2-test-v0\")\n```\n\nFor other examples, see [Basic Usage](https://minari.farama.org/main/content/basic_usage/). For a complete tutorial on how to create new datasets using Minari, see our [Pointmaze D4RL Dataset](https://minari.farama.org/main/tutorials/dataset_creation/point_maze_dataset/) tutorial, which re-creates the Maze2D datasets from [D4RL](https://github.com/Farama-Foundation/D4RL).\n\n## Project Maintainers\nMain Contributors: [Rodrigo Perez-Vicente](https://github.com/rodrigodelazcano), [Omar Younis](https://github.com/younik), [John Balis](https://github.com/balisujohn)\n\nMaintenance for this project is also contributed by the broader Farama team: [farama.org/team](https://farama.org/team).\n\n___\n\n_Minari is a shortening of Minarai, the Japanese word for \"learning by observation\"._\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A standard format for offline reinforcement learning datasets, with popular reference datasets and related utilities.",
    "version": "0.4.3",
    "project_urls": {
        "Bug Report": "https://github.com/Farama-Foundation/Minari/issues",
        "Documentation": "https://minari.farama.org/",
        "Homepage": "https://farama.org",
        "Repository": "https://github.com/Farama-Foundation/Minari"
    },
    "split_keywords": [
        "reinforcement learning",
        "offline rl",
        "rl",
        "ai",
        "gymnasium",
        "farama"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "068b0d5cb18cdaf87b124f789415af1dfda6736625d92cfe6aa98ad2a610fe2e",
                "md5": "89c47f54e93b20ffb93c1f0f7bc4c5e3",
                "sha256": "306aa166e5cee6bca5e7ebbf494b6b3e833af14cc9d6b3653357d035cb278cb6"
            },
            "downloads": -1,
            "filename": "minari-0.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "89c47f54e93b20ffb93c1f0f7bc4c5e3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 42776,
            "upload_time": "2024-01-27T14:47:53",
            "upload_time_iso_8601": "2024-01-27T14:47:53.604689Z",
            "url": "https://files.pythonhosted.org/packages/06/8b/0d5cb18cdaf87b124f789415af1dfda6736625d92cfe6aa98ad2a610fe2e/minari-0.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3cbb9dafd891d509d43774f5648dd20db8a9bca05ccec9310acf80790ac2cb8e",
                "md5": "b48c4421d296337b974ac1a848e155af",
                "sha256": "973d29fd35c7fa39de3da0631abe23586634a630e609ff33f6d0c76668a1d213"
            },
            "downloads": -1,
            "filename": "minari-0.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b48c4421d296337b974ac1a848e155af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 40151,
            "upload_time": "2024-01-27T14:47:55",
            "upload_time_iso_8601": "2024-01-27T14:47:55.255366Z",
            "url": "https://files.pythonhosted.org/packages/3c/bb/9dafd891d509d43774f5648dd20db8a9bca05ccec9310acf80790ac2cb8e/minari-0.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-27 14:47:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Farama-Foundation",
    "github_project": "Minari",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "minari"
}
        
Elapsed time: 0.18396s