An OpenAI Gym for Shopping Cart Reinforcement Learning
Project description
gym-display-advertising
An OpenAI Gym for Shopping Cart Reinforcement Learning.
This is a project by Winder Research, a Cloud-Native Data Science consultancy.
Installation
pip install gym-shopping-cart
Usage
This example will use the small example data included in the repo.
import gym
import gym_shopping_cart
env = gym.make("ShoppingCart-v0")
episode_over = False
rewards = 0
while not episode_over:
state, reward, episode_over, _ = env.step(env.action_space.sample())
print(state, reward)
rewards += reward
print("Total reward: {}".format(rewards))
Real Shopping Cart Data
This environment uses real shopping cart information from the Instacart dataset.
To help read this data the library also comes with a data parser. This loads the raw data and cleans the data to be in a format expected by the environment.
Credits
Gitlab icon made by Freepik from www.flaticon.com.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gym_shopping_cart-0.1.1.tar.gz
(23.7 kB
view hashes)
Built Distribution
Close
Hashes for gym_shopping_cart-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd204d3882232949a479e19aea8cfeac586730c3e3a4af888b4cd5bffdaf7022 |
|
MD5 | 3d9b436a342d70c23a0b6a721b847541 |
|
BLAKE2b-256 | 42182b8cb90000a2c9b43bb7e2cb4b509df68deae018abf7034d765465371186 |