Kaggle Environments
Project description
Environments
ALPHA RELEASE - Breaking changes may be introduced!
pip install kaggle-environments
TLDR;
from kaggle_environments import make
# Setup a tictactoe environment.
env = make("tictactoe")
# Basic agent which marks the first available cell.
def my_agent(obs):
return [c for c in range(len(obs.board)) if obs.board[c] == 0][0]
# Run the basic agent against a default agent which chooses a "random" move.
env.run([my_agent, "random"])
# Render an html ipython replay of the tictactoe game.
env.render(mode="ipython")
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
kaggle-environments-0.1.0.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for kaggle-environments-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9f4f021c0d302ce5e3ed7d538cfc3153c440a985e3e5bd74434ab7995bffd55 |
|
MD5 | 5c25326b2209eb96cd6d7e944b50303e |
|
BLAKE2b-256 | c815f4081a92e3eff707122728631ed05ffd1e0d315e588be10bec8e61a2b013 |
Close
Hashes for kaggle_environments-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f28a9dfbfe27fb66563be3a5c156e8eb25de1cfa25baef1143c652e0d752323 |
|
MD5 | 3623818cbb662f829f7d859e15a2b688 |
|
BLAKE2b-256 | eb4794ecd63f7b743fd794d9e12418203d512662ce8ef2b501e6ada1bead5d90 |