コード例 #1
0
def run_qbc_strategies(data_set_obj, model):
  for strategy in qbc_classes:
    print "Running Query by Committee for class:", strategy
    qbc_class = getattr(answerer, strategy)
    obj = qbc_class(strategy_classes, data_set_obj, model)
    eval_obj = EvaluateStrategy(obj)
    eval_obj.run_evaluation()
    eval_obj.print_stats()
コード例 #2
0
def run_strategies(data_set_obj, model):
  for strategy in strategy_classes:
    print "Running Strategy for class:", strategy
    strat_class = getattr(answerer, strategy)
    obj = strat_class(data_set_obj, model)
    eval_obj = EvaluateStrategy(obj)
    eval_obj.run_evaluation()
    eval_obj.print_stats()