No project description provided
Project description
Requirements
Ubuntu 20.04
or laterMacOS 10.15
or laterPython >= 3.7
Example
from mjx import MjxEnv
from mjx.agents import RandomAgent
agent = RandomAgent()
env = MjxEnv()
obs_dict = env.reset()
while not env.done():
actions = {player_id: agent.act(obs)
for player_id, obs in obs_dict.items()}
obs_dict = env.step(actions)
returns = env.rewards()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mjx-0.0.10.tar.gz
(351.9 kB
view hashes)
Built Distributions
Close
Hashes for mjx-0.0.10-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff1644659347be43ee197ec96edab07378a9363a167c0ed590a2b6c84c3b3f44 |
|
MD5 | 6df02b12f382ad59b08fd88ca7a54d07 |
|
BLAKE2b-256 | 849031b6eacb38226f97c4166f3d32e4a17dd867bb5060f7858f9cb90bf1802e |
Close
Hashes for mjx-0.0.10-cp37-cp37m-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3350efcbbf01adb25bc31aa4af51355b35ece95c8b5aad1c9dd2dfa631eb711a |
|
MD5 | 7bcd3af413f8329fb13fa8d41e10c83b |
|
BLAKE2b-256 | 965765e00e35639d998b2c47d6c23cb67b2e79b3ce870efa1a18b07591d9587a |