mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00

* Add some reinforcement learning example. * Python initialization. * Get the example to run. * Vectorized gym envs for the atari wrappers. * Get some simulation loop to run.
17 lines
488 B
Markdown
17 lines
488 B
Markdown
# candle-reinforcement-learning
|
|
|
|
Reinforcement Learning examples for candle.
|
|
|
|
This has been tested with `gymnasium` version `0.29.1`. You can install the
|
|
Python package with:
|
|
```bash
|
|
pip install "gymnasium[accept-rom-license]"
|
|
```
|
|
|
|
In order to run the example, use the following command. Note the additional
|
|
`--package` flag to ensure that there is no conflict with the `candle-pyo3`
|
|
crate.
|
|
```bash
|
|
cargo run --example reinforcement-learning --features=pyo3 --package candle-examples
|
|
```
|