Skip to content

Deep Reinforcement Learning in C#

License

Notifications You must be signed in to change notification settings

gktval/RL_Matrix

 
 

Repository files navigation

RLMatrixBanner

🚀 RLMatrix - Advanced Reinforcement Learning in C#

RLMatrix provides a comprehensive reinforcement learning framework for C# developers with performance exceeding Python alternatives. Built with TorchSharp, RLMatrix offers a type-safe, high-performance environment for developing and deploying reinforcement learning solutions.

NuGet TorchSharp Discord

💬 Get in Touch

  • Discord: Join our community server for discussions, support, and updates
  • GitHub Issues: Report bugs or request features through our GitHub issues
  • Email: For business inquiries, contact [email protected]

🏁 Getting Started

Please visit our official documentation for the most up-to-date getting started guides and tutorials.

⚠️ Note: The examples in this repository are being updated. For more current examples, check out our testing repository.

✨ Key Features

  • Comprehensive Algorithm Library: Includes PPO, DQN with all popular modifications (up to C51 and DQN Rainbow), GAIL, and more algorithms on the way
  • Revolutionary DRL Workflow: Thanks to C# source generation in the toolkit, you can focus on your domain problem rather than wrestling with complex API requirements
  • Multi-Head Support: Handle continuous, discrete, and mixed action spaces simultaneously in a single agent
  • RNN Integration: Enable recurrent neural networks with a simple option toggle for sequential or partial observability problems
  • Pure C# Implementation: Built entirely in C# with TorchSharp backend, providing native performance and complete type safety
  • Game Engine Ready: Battle-tested in Unity and Godot
  • Superior Performance: Faster and more stable than Python's stable-baselines, ml-agents, and Godot RL agents
  • Multi-Environment Training: Scale learning across parallel (optionally networked) environments
  • Real-time Monitoring: Built-in dashboard for visualizing training metrics
  • Industrial-Grade Distributed Training: High-performance, fault-tolerant networked architecture ready for large-scale reinforcement learning deployments
  • Transparent Source Code: Clean, well-documented codebase that's easy to extend or customize

Training Example

🗺️ Roadmap

  • Improve documentation and examples
  • Expand algorithm library with additional state-of-the-art methods
  • Further enhance Godot and Unity integration
  • Add more tools for imitation learning and GAIL
  • Test and optimize support for non-Windows non-CUDA platforms
  • Streamline inference and deployment workflows

📄 License

RLMatrix is licensed under the RLMatrix Comprehensive Dual License Agreement

About

Deep Reinforcement Learning in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 95.6%
  • HTML 4.1%
  • CSS 0.3%