Ejemplo n.º 1
0
def lfw_view2_final_get_mix(host='honeybadger.rowland.org',
                            dbname='final_random',
                            A=100):
    trials = MongoTrials(
            'mongo://%s:44556/%s/jobs' % (host, dbname),
            exp_key=exp_keys['random'],
            refresh=True)
    return trials
    bandit = MultiBandit()
    simple_mix = SimpleMixture(trials, bandit)
    simple_mix_trials =  simple_mix.mix_trials(int(A))
    ada_mix = AdaboostMixture(trials, bandit)
    ada_mix_trials =  ada_mix.mix_trials(int(A))    
    
    return simple_mix_trials, ada_mix_trials