Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/f/l/flask_mab-HEAD/example/example_app.py   flask_mab(Download)
from flask.ext.mab.storage import JSONBanditStorage
from flask.ext.mab.bandits import EpsilonGreedyBandit, AnnealingSoftmaxBandit
 
color_bandit = EpsilonGreedyBandit(0.9)
color_bandit.add_arm("green","green")
color_bandit.add_arm("red","red")
color_bandit.add_arm("blue","blue")
 
txt_bandit = AnnealingSoftmaxBandit()