learn 0.1.1

A minimal reinforcement learning library written in Rust from scratch.
Documentation
  • Coverage
  • 2%
    2 out of 100 items documented0 out of 59 items with examples
  • Size
  • Source code size: 61.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.47 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • yingkitw/learn
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • yingkitw

rl_lib

A minimal reinforcement learning library written in Rust from scratch.

Features

  • Core abstractions: Environment, Agent, Policy
  • Spaces: Discrete, Box (continuous)
  • Algorithms:
    • Q-Learning (tabular)
    • SARSA (tabular)
    • REINFORCE (policy gradient with MLP)
    • DQN (experience replay + target network)
  • Included environments:
    • GridWorld
    • CartPole (simple physics)
  • Minimal hand-written neural net backprop — no heavy DL frameworks required.

Quick Start

cd rl-lib
cargo test
cargo run --example q_learning_gridworld
cargo run --example reinforce_cartpole

Project Structure

  • SPEC.md — interface and behavior definitions
  • ARCHITECTURE.md — module layout and design decisions
  • TODO.md — implementation checklist