laboroai / border

A reinforcement learning library in Rust
Apache License 2.0
42 stars 8 forks source link

Object safe #94

Closed taku-y closed 6 months ago

taku-y commented 6 months ago

This PR makes Policy and Agent to be object safe. To do this, Policy trait is split into two traits, one for sampling (Policy) and the other for configuration (Configurable). With this change, Policy and Agent traits do not have any associated type, thus being object safe. This change may be useful when using trait objects for policy and agent.