{"adoption": {"forks": 1333, "observed_at": "2026-08-28T04:10:44.785602+00:00", "stars": 10943}, "canonical_url": "https://ross.abutalabs.com/products/tianshou", "card": {"archived": false, "artifact_type": "library", "description": "An elegant PyTorch deep reinforcement learning library.", "domain": ["reinforcement-learning", "machine-learning", "deep-learning"], "enriched": true, "function": ["machine-learning", "reinforcement-learning", "deep-learning"], "health_score": 83, "homepage": "https://tianshou.org", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["thu-ml/tianshou"], "name": "thu-ml/tianshou", "platform": ["python", "cross-platform"], "pushed_at": "2026-04-03T21:34:47+00:00", "repo": "thu-ml/tianshou", "stars": 10943, "tags": ["pytorch", "gymnasium", "dqn", "ppo", "sac", "offline-rl", "imitation-learning", "multi-agent-rl"], "topics": ["pytorch", "policy-gradient", "dqn", "double-dqn", "a2c", "ddpg", "ppo", "td3", "sac", "imitation-learning", "mujoco", "atari", "bcq", "rl", "drl", "trpo", "npg", "cql", "transferlab"], "urls": [], "use_cases": ["train a deep RL agent on a custom Gymnasium environment", "implement and benchmark policy gradient algorithms like PPO or SAC", "run offline RL experiments with CQL or BCQ", "prototype new RL algorithms with modular PyTorch components", "train DQN variants on Atari environments", "apply imitation learning such as GAIL or behavior cloning"], "what_it_is": "Tianshou is a modular, high-performance deep reinforcement learning library built on pure PyTorch and Gymnasium. It offers both low-level hackable interfaces for RL researchers and high-level APIs for training agents, covering online, offline, and experimental multi-agent and model-based RL.", "when_to_avoid": ["you need TensorFlow-based RL tooling", "you need production multi-agent RL support (still experimental)", "you depend on Tianshou v1 APIs, since v2 is not backwards compatible", "you want a turnkey RL platform with no coding"], "when_to_choose": ["you want a fast, pure-PyTorch RL library with clean, type-safe APIs", "you need broad algorithm coverage across on-policy, off-policy, and offline RL", "you are an RL researcher who needs hackable modular interfaces", "you want well-documented trainers for custom environments"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/tianshou", "repo": "thu-ml/tianshou", "role": "main", "score": 72}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:44.785602+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:17:19.138629+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9b1fd7d2676f54c35559630e5a1793bc0e1a7782fa638de8a36bac90966fe02", "fetched_at": "2026-08-28T04:10:44.785602+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thu-ml/tianshou"}, {"content_hash": "ba01ce393d88a602e233de1b081abdad38c4b882b448c2e8218bcfa7a96eda32", "fetched_at": "2026-08-29T08:16:04.993683+00:00", "kind": "homepage", "missing": false, "url": "https://tianshou.org"}, {"content_hash": "aa2a2d9d6618531f70970252cca0aa225c9554f10fb3afcdf12204ebcd89d214", "fetched_at": "2026-08-29T08:16:05.003167+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/tianshou/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 75, "longevity": 100, "rhythm": 53}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3061, "days_push": 152, "days_rel": 153, "gap_med": 141.0, "n_releases_24m": 3}, "score": 72, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}