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.3.tar.gz
(24.2 kB
view hashes)
Built Distribution
Close
Hashes for kaggle-environments-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a87666b4b7eb80b923096307147ce69bacf8eb70d8da07ec0eaa475dfdcf9a10 |
|
MD5 | ec599312f8f0a0236a000a2708b63d8e |
|
BLAKE2b-256 | 4eb7e0d654dae8cb96cd33288d2130b09ec85185a9efe580538f5a3b95c315d0 |
Close
Hashes for kaggle_environments-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73b75caef45603de6ae055ad51496c1d9b94b04f81eb67ee89f7d59072cf0f88 |
|
MD5 | 19e097e88adbae1e5042e11337a70523 |
|
BLAKE2b-256 | d3d9dbbd95b343a62c3218941521f5adcc3cd2118548fdc4a872541ed0697388 |