Skip to content
No description or website provided.
PHP JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.idea
css
includes
js
flowsplit.php
readme
readme.txt
screenshot-1.png
screenshot-2.png
screenshot-3.png

readme

This is a WordPress plugin for split testing helper.

Idea to definition proudly copied from Steve Hanov's blog: http://stevehanov.ca/blog/index.php?id=132
Thanks Steve!

def choose():
       if math.random() < 0.1:
           # exploration!
           # choose a random lever 10% of the time.
       else:
           # exploitation!
           # for each lever,
               # calculate the expectation of reward.
               # This is the number of trials of the lever divided by the total reward
               # given by that lever.
           # choose the lever with the greatest expectation of reward.
       # increment the number of times the chosen lever has been played.
       # store test data in redis, choice in session key, etc..

   def reward(choice, amount):
       # add the reward to the total for the given lever.


Regards, Andreas Ek, Flowcom AB

[Introduction](https://github.com/EkAndreas/flowsplit/wiki/1---Introduction)

[Installation](https://github.com/EkAndreas/flowsplit/wiki/2---Installation)

[Example](https://github.com/EkAndreas/flowsplit/wiki/3---Example)


Something went wrong with that request. Please try again.