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.
Metadata
Release files for gym-shopping-cart 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gym_shopping_cart-0.2.0.tar.gz | 24.1 kB | Without provenance | Details for gym_shopping_cart-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gym_shopping_cart-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for gym_shopping_cart-0.2.0-py3-none-any.whl |
Total release size: 50.0 kB
Release files / gym_shopping_cart-0.2.0.tar.gz
| Download URL | gym_shopping_cart-0.2.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fbdc151d74534d32264595419c597da0b0564e63795f4e6a79f1c03b1f9380f
|
|
BLAKE2b-256 checksum How to use checksums |
1115a6c09d670f622804bc91ac39c663db4f08a8ba4030446048249a1b8b331f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.6
|
Release files / gym_shopping_cart-0.2.0-py3-none-any.whl
| Download URL | gym_shopping_cart-0.2.0-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aaeb07eeb96802211baf25dbdacd5613776311cfbe92ecd031033d2146fae8bd
|
|
BLAKE2b-256 checksum How to use checksums |
5aa667b4a815a07a0e9cabf7bfd2ddc9f8dcc23f1e48f24f1c2e11eda8225bec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.6
|
Security for gym-shopping-cart 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.