Skip to content

Comment on Show HN: Bandit Algorithm for iOS, Android and Unity

Comments

For the DIY crowd, implementing this on your own is a straightforward (and fun) exercise.

I used the Javascript Bayesian Bandit library found here:

https://github.com/omphalos/bayesian-bandit.js/blob/master/b...

I then used it to create a job that runs every 5 minutes on parse.com that updates an 'order' field based on the 5 minute sample.

Then, from the client side, I simply do a query sorted by the 'order' field and I get the top variant for that 5 minute interval. Works like a charm!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.