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.2.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for kaggle-environments-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85c4f9cb614e7b0d161c3a34873816470df6c3d5aa2dbcf1eb34482bb754fc1a |
|
MD5 | 52d28ce1b8aa52474754d70ee472903e |
|
BLAKE2b-256 | d039c32225e2a358e68ff98f6cc597d9417b11d31fd2785b8ab3ea6b21a034c5 |
Close
Hashes for kaggle_environments-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df76d79dc30d2c12f2313b12bf1c26faec5748fe53e18803d728c4edf98cadc8 |
|
MD5 | 14d9ac2ef02c633797b55ebe498a24cb |
|
BLAKE2b-256 | 014d83bdbebe6a0978d6893b9a41c0ad5c40c65c0a04eb6c01c6afeaa87ea295 |