Exemplo n.º 1
0
def main():
    con = Controller("sample.cfg", "True")
    con.run()
Exemplo n.º 2
0
            if run_once and p['type'] in ['greedy','greedy_reverse','accgain','accgain_reverse'] and p['name'] in policies_run:
                continue

            np.random.seed(rint)
            platform.reset()
            controller = Controller(policy=p,
                                    platform=platform,
                                    num_workers=platform.num_workers,
                                    num_questions=platform.num_questions,
                                    max_rounds=max_rounds_in)

                                    
            if 'offline' in p:
                r = controller.run_offline()
            else:
                r = controller.run()

            policies_run.add(p['name'])
            
        

            
            # save platform settings (don't have to do this every run, but we do)
            runinfo = {'gt_difficulties': platform.gt_difficulties.tolist(),
                       'gt_skills': platform.gt_skills.tolist(),
                       'gt_labels': platform.gt_labels.tolist()}
            

            res.update(history_rows=r,
                       run_row={'experiment_name': experiment_name_json,
                                'experiment': experiment_json,
Exemplo n.º 3
0
def main():
	con = Controller("sample.cfg", "True");
	con.run()
Exemplo n.º 4
0
import warnings
warnings.simplefilter('ignore')

import strategy
from control import Controller

agent = strategy.EdgeDetectionAgent(10)
# agent = strategy.SiameseNetAgent(10)
controller = Controller(agent, data_dir=None)
controller.run()