tournament.py 745 Bytes
Newer Older
Alan Marchiori's avatar
Alan Marchiori committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
from twolevel import correlation_register

from global_pred import global_pht
from local import local_bht

class tournament_predictor:
    
    def __init__(self, local_bits, global_bits, meta_bits):
        
        self.local = local_bht(local_bits)
        self.glob = global_pht(global_bits) 
        
        # TODO
        # still need a predictor to predict which to use??
        
    def predict(self, pc, target, outcome, verbose):
        
        
        result = self.local.predict(pc, target, outcome, verbose)
        result += self.glob.predict(pc, target, outcome, verbose)
        
        # TODO
        # we have a string with the result of both predictors, what to do with it?
              
            
        return "T"