EntityGym for Rust
EntityGym is a Python library that defines a novel entity-based abstraction for reinforcement learning environments which enables highly ergonomic and efficient training of deep reinforcement learning agents. This crate provides bindings that allows Rust programs to be used as EntityGym training environments, and to load and run neural networks agents trained with Entity Neural Network Trainer inside Rust.
Overview
The entity-gym-rs crate provides a high-level API that allows neural network agents to interact directly with Rust data structures.
use ;
// The `Action` trait can be automatically derived for any enum with only unit variants.
// The `Featurizable` trait can be automatically derived for any struct that contains
// only primitive number types, booleans, or other `Featurizable` types.
Docs
- bevy_snake: Example of how to use entity-gym-rs in a Bevy game.
- bevy_multisnake: Example of more advanced Bevy integration and adversarial training with multiple agents.
- EntityGym Rust API Docs: Rust API reference.