ptan  by Shmuma

PyTorch reinforcement learning toolkit

created 7 years ago
546 stars

Top 59.3% on sourcepulse

GitHubView on GitHub
Project Summary

PTAN (PyTorch AgentNet) is a reinforcement learning toolkit for PyTorch, serving as a reimplementation of the AgentNet library. It is designed for researchers and practitioners working with deep reinforcement learning, particularly those following the "Deep Reinforcement Learning Hands-On" book. The library provides a flexible framework for building and experimenting with RL agents.

How It Works

PTAN offers a modular approach to RL agent development, abstracting common components like experience replay buffers, agent networks, and training loops. It emphasizes a clear separation of concerns, allowing users to easily swap out different algorithms, network architectures, and environments. The library's design facilitates experimentation by providing reusable building blocks for RL research.

Quick Start & Requirements

  • Install from PyPI: pip install ptan
  • Requires PyTorch version 1.1.0 or later.
  • Additional dependencies: PyTorch Ignite, OpenAI Gym (with gym[atari] for Atari environments), OpenCV, and TensorBoardX.
  • Python 3.7 is the tested version; newer versions are not guaranteed to work.

Highlighted Details

  • Reimplementation of the AgentNet library for PyTorch.
  • Used in the "Deep Reinforcement Learning Hands-On" book.
  • Supports integration with PyTorch Ignite for enhanced training capabilities.
  • Includes examples and documentation for various RL concepts.

Maintenance & Community

The repository is actively maintained to keep dependency versions up-to-date, though this process requires significant testing effort. Different code branches exist for compatibility with major PyTorch versions.

Licensing & Compatibility

The README does not explicitly state a license. Users should verify licensing for commercial use or integration with closed-source projects.

Limitations & Caveats

The library is primarily tested with Python 3.7; compatibility with newer Python versions is not guaranteed. The code printed in the second edition of the book might differ from the repository due to ongoing updates and dependency changes.

Health Check
Last commit

9 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
4 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.