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.1.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for kaggle-environments-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8913d41192459370738f5e33fdaa8e3aa6bf43a6d959e7c672c46a22653deae9 |
|
MD5 | 082d8a39c17cb0e8ba30f9994cbc8226 |
|
BLAKE2b-256 | bfd64fe528243cac841f2c96174b29bcb7492fd91fc7b0f91a81cf92337f355a |
Close
Hashes for kaggle_environments-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac07934df85f4ca5e33bd81e2b0a1e0f256e3834317a5a3864eae2734fd430f |
|
MD5 | 8f174b1a17ebe375cf4febf8d4d1c632 |
|
BLAKE2b-256 | cc04384c6c366c977f5e38a964fbb7e63b524cd9e69dbc7a6881dbc81fc3cec3 |