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.5.tar.gz
(29.2 kB
view hashes)
Built Distribution
Close
Hashes for kaggle-environments-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4aeb486f449545ab422e36a642e2cae968c8a372c56b1b5a6e866c356403ca7 |
|
MD5 | 23c7f2f95ef1264a7190feb8a61bda1c |
|
BLAKE2b-256 | 1d558f72312f4fbd7bba695770313492255551cd45e23e291c22087d4aac62a0 |
Close
Hashes for kaggle_environments-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7eeac8e418146b982a0d5f2714e8c15c8e85d7c5098a67f782c1540c8680f8c |
|
MD5 | 1164be95fa86c61067ec5aae250e95be |
|
BLAKE2b-256 | ef903a8816099e2ca853e1b04efcd0c98fc69ca48d2204ab304a367448e80460 |