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.6.tar.gz
(30.4 kB
view hashes)
Built Distribution
Close
Hashes for kaggle-environments-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb040b0f064be0184f6e9dfa3979cd692a7443cc4d56bb62417afdedd861f83 |
|
MD5 | 3075e217cc0b14392ff2882fe1df0ead |
|
BLAKE2b-256 | b7f85aec30e60fa8a64ca510af756cf5647874fb8b572a2985fbe70f77e17dc3 |
Close
Hashes for kaggle_environments-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a35b760d8d83da488dbd614abcb7fe5f9f8157fbdab46edebd99c0495af036f |
|
MD5 | 6050118b8ebc10c6ef46887adab042f7 |
|
BLAKE2b-256 | 7cd70ea53627a17444f1ea5d5d80bdd20d34e3b1ec2c18e2b34f41196cf020a6 |