tianshouEasy Examples

Modular RL platform built on PyTorch

Getting started with tianshou

Installation and basic usage of tianshou.

python
# Install: pip install tianshou
import tianshou

# Basic tianshou usage
print(f"Using tianshou")
# See documentation for detailed examples
Expected Output
# Expected output shown below
# (Run locally with: tianshou)

tianshou is a third-party package. Modular RL platform built on PyTorch. Install with: pip install tianshou

Common tianshou operations

Frequently used features of tianshou.

python
# Install: pip install tianshou
import tianshou

# Common tianshou patterns
print(f"tianshou version: {tianshou.__version__}")

These are the most commonly used features of tianshou in everyday development.

Want to try these examples interactively?

Open Easy Playground