Source: https://seerepo.com/compare/thu-ml/tianshou/vs/Unity-Technologies/ml-agents
Markdown source: https://seerepo.com/compare/thu-ml/tianshou/vs/Unity-Technologies/ml-agents.md
Description: tianshou and ml-agents share 4 technologies: h5py, torch, gymnasium, and pettingzoo. Both are written in Python.

# tianshou vs ml-agents

tianshou and ml-agents share 4 technologies: h5py, torch, gymnasium, and pettingzoo. Both are written in Python.

- [thu-ml/tianshou](https://seerepo.com/r/thu-ml/tianshou): An elegant PyTorch deep reinforcement learning library.
- [Unity-Technologies/ml-agents](https://seerepo.com/r/Unity-Technologies/ml-agents): The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.

## What they share and what sets them apart

- In common: h5py, torch, gymnasium, pettingzoo
- Only in tianshou: pygame, matplotlib, ale-py, sensai-utils, opencv-python, imageio
- Only in ml-agents: mlagents-envs, pillow

## Side by side

| | tianshou | ml-agents |
|---|---|---|
| Size | 49,576 lines written, 105 code files | 81,989 lines written, 300 code files |
| Who writes it | 0% of its commits signed by AI | 0.1% of its commits signed by AI. With Claude Code |
| Activity | Last push November 25, 2026, 1,244 commits, 11,055 stars | Last push November 21, 2026, 3,177 commits, 19,891 stars |
| Tests | 60 test files. 42.9% of its code files have a test that imports them | 160 test files. 55.3% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, tianshou or ml-agents?

ml-agents, with 81,989 lines written; tianshou has 49,576.

The proof: [Unity-Technologies/ml-agents's code at commit 4649106](https://github.com/Unity-Technologies/ml-agents/tree/4649106d09088a6135397e0f8ed7015ec600834a)

### Which has more GitHub stars, tianshou or ml-agents?

ml-agents, with 19,891 stars; tianshou has 11,055.

The proof: [Unity-Technologies/ml-agents on GitHub](https://github.com/Unity-Technologies/ml-agents)

### Which has more tests, tianshou or ml-agents?

ml-agents, with 160 test files; tianshou has 60.

The proof: [Unity-Technologies/ml-agents's code at commit 4649106](https://github.com/Unity-Technologies/ml-agents/tree/4649106d09088a6135397e0f8ed7015ec600834a)

### Which was updated more recently, tianshou or ml-agents?

tianshou: its last push was on November 25, 2026, and ml-agents's on November 21, 2026.

The proof: [thu-ml/tianshou's commits on GitHub](https://github.com/thu-ml/tianshou/commits)

### Which has more commits signed by AI, tianshou or ml-agents?

ml-agents: an AI signed 0.1% of its commits, with Claude Code.

## Sources

- thu-ml/tianshou: Read on November 25, 2026, at commit 63173a2 (https://github.com/thu-ml/tianshou/tree/63173a2b5ada64bc2f14bbe4091cb0075aefde85)
- Unity-Technologies/ml-agents: Read on November 22, 2026, at commit 4649106 (https://github.com/Unity-Technologies/ml-agents/tree/4649106d09088a6135397e0f8ed7015ec600834a)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
