Kaggle Environments
Project description
Environments
pip install kaggle-environments
BETA RELEASE - Breaking changes may be introduced!
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.4.tar.gz
(28.2 kB
view hashes)
Built Distribution
Close
Hashes for kaggle-environments-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22657f7c701161851a4029c6b14129497de8e50f9275633a4face8b1c256118b |
|
MD5 | 11b2415822e9b38cb5f67478fd04359d |
|
BLAKE2b-256 | c8ec4f33c9448cd1e3c2985a1767707e810717ee42941ffcd574267217441385 |
Close
Hashes for kaggle_environments-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d109c5e7cc0caee6736768d7a8bf0a109fc2f66e536702a015921a5014993f |
|
MD5 | cd3e999e7d5e6626bad8de6ee99ab7ca |
|
BLAKE2b-256 | f493021043ff2a4d76c7600f5687861ef222990748d1214f363bcee7ab102bce |