7 releases (4 stable)

✓ Uses Rust 2018 edition

2.2.1 Feb 10, 2020
2.2.0 Feb 7, 2020
2.1.0 Nov 30, 2019
1.0.0 Oct 11, 2019
0.1.0 Aug 21, 2019

#37 in Machine learning

Download history 10/week @ 2020-03-14 35/week @ 2020-03-21 23/week @ 2020-03-28 11/week @ 2020-04-04 45/week @ 2020-04-11 2/week @ 2020-04-18 2/week @ 2020-04-25 1/week @ 2020-05-02 2/week @ 2020-05-09 3/week @ 2020-05-16 8/week @ 2020-05-23 22/week @ 2020-05-30 3/week @ 2020-06-06 10/week @ 2020-06-13 2/week @ 2020-06-20 9/week @ 2020-06-27

76 downloads per month
Used in neat-rs

MIT/Apache

15KB
439 lines

gym-rs

HitCount Build Status Crates.io Docs.rs license

OpenAI gym binding for Rust.

Actively maintained! If you have any problem just create an issue.

Install

Just install the requierements layed out in the requirements.txt.

If you don't have python installed, go here

curl "https://raw.githubusercontent.com/MrRobb/gym-rs/master/requirements.txt" > requirements.txt
pip3 install -r requirements.txt

Usage

Once everything is installed, just add this crate to your your Rust project.

# Cargo.toml

[dependencies]
gym = "*"

Then, to use it just do:

// main.rs

extern crate gym;
/* ... */

Example

Once you have installed correctly the library, the only thing left is to test if its working ok. To do so, you just have to execute the following commands:

If you don't have Rust installed go here

git clone https://github.com/MrRobb/gym-rs.git
cd gym-rs
pip3 install -r requirements.txt
cargo run --example basic

Donation (BTC)

BTC address: 3KRM66geiaXWzqs5hRb35dGiQEQAa6JTYU

Dependencies

~2.5MB
~48K SLoC