Skip to content

An OpenAI Gym for Personalised Promotion Reinforcement Learning.

License

Notifications You must be signed in to change notification settings

kimfalk/gym-promotions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gym-promotions

This is an implementation of an environment to test RL algorithms in showing promotions to users.

For more info on the OpenAi gyms look here: OpenAi gym

And for getting started, have a look here: Getting started with gym

Install

clone this repository, and in the root run the following command:

pip install -e gym-promotions

Code

To run the gym, try out the following code, or have a look at the exercise.py file:

import gym
env = gym.make('gym_promotions:promotions-v0')
env.reset()
env.render()

for i in range(3):
    print(env.step(1))

To do

  • Add real data -> currently it uses a small hardcoded dataset
  • Add examples of solutions
  • Tests?

About

An OpenAI Gym for Personalised Promotion Reinforcement Learning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages