Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Data Science
  3. Imitation

Imitation

MITPythonv1.0.1

Clean PyTorch implementations of imitation and reward learning algorithms for reinforcement learning.

Visit WebsiteGitHubGitHub
1.8k stars301 forks0 contributors

What is Imitation?

Imitation is a Python library that provides clean, production-ready implementations of imitation learning and reward learning algorithms. It solves the problem of training reinforcement learning agents efficiently by leveraging expert demonstrations, human preferences, or inferred reward functions, rather than relying solely on trial-and-error. The library includes algorithms like Behavioral Cloning, GAIL, AIRL, and Inverse Reinforcement Learning, all built with PyTorch.

Target Audience

Reinforcement learning researchers and practitioners who need reliable baselines for imitation learning, as well as developers working on AI systems that learn from human demonstrations or preferences, particularly in robotics and game AI.

Value Proposition

Developers choose Imitation for its high-quality, well-documented implementations that are rigorously tested and benchmarked, offering a standardized toolkit that reduces implementation errors and accelerates research. Its modular design and support for both discrete and continuous environments make it versatile for various applications.

Overview

Clean PyTorch implementations of imitation and reward learning algorithms

Use Cases

Best For

  • Training RL agents from expert demonstrations without hand-crafted rewards
  • Implementing and benchmarking state-of-the-art imitation learning algorithms
  • Research projects requiring reproducible baselines for imitation or reward learning
  • Building AI systems that learn from human preferences or comparisons
  • Educational purposes to understand imitation learning algorithms in depth
  • Developing robotics controllers using demonstration data

Not Ideal For

  • Teams using TensorFlow as their primary deep learning framework
  • Projects still reliant on the deprecated OpenAI Gym API
  • Applications requiring Maximum Causal Entropy IRL or Soft Q Imitation Learning with continuous action spaces
  • Developers needing a lightweight, no-dependency setup for rapid prototyping

Pros & Cons

Pros

Comprehensive Algorithm Suite

Implements key algorithms like GAIL, AIRL, and preference-based learning, all documented with benchmark results for reliable performance comparison.

High Code Quality

Emphasizes clean, modular, and well-tested code, ensuring stability for research and practical applications as stated in the philosophy.

Extensive Documentation

Features thorough API docs, tutorials, and benchmark summaries on ReadTheDocs, making it accessible for varied use cases.

Unified API Design

Offers consistent interfaces across algorithms, simplifying experimentation and integration with gymnasium environments.

Cons

Limited Continuous Support

Algorithms like MCE IRL and SQIL do not support continuous action spaces, restricting their utility in environments like robotics simulations.

Dependency on Gymnasium

Only compatible with the newer gymnasium API, forcing migration from the older gym, which can be a barrier for existing projects.

Complex CLI Setup

Uses Sacred for configuration, adding overhead for users unfamiliar with it or those preferring simpler script-based workflows.

Frequently Asked Questions

Quick Stats

Stars1,750
Forks301
Contributors0
Open Issues78
Last commit1 year ago
CreatedSince 2018

Tags

#gymnasium#ai-safety#research-toolkit#machine-learning#reinforcement-learning#imitation-learning#pytorch

Built With

G
Gymnasium
P
Python
P
PyTorch

Links & Resources

Website

Included in

Data Science3.4k
Auto-fetched 1 day ago

Related Projects

Stable Baselines3Stable Baselines3

PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms.

Stars13,395
Forks2,141
Last commit28 days ago
GymnasiumGymnasium

An API standard for single-agent reinforcement learning environments, with popular reference environments and related utilities (formerly Gym)

Stars12,010
Forks1,357
Last commit5 days ago
DopamineDopamine

Dopamine is a research framework for fast prototyping of reinforcement learning algorithms.

Stars10,879
Forks1,393
Last commit2 months ago
TianshouTianshou

An elegant PyTorch deep reinforcement learning library.

Stars10,783
Forks1,319
Last commit2 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub