isoexp/contextual/contextual_linucb.py [13:24]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
class RandomArm(object):
    def __init__(self, initial_arms):
        self.arms = initial_arms

    def get_action(self):
        return np.random.choice(self.arms)

    def update(self, a_t, r_t):
        pass

    def reset(self):
        pass
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



isoexp/linear/linearbandit.py [13:24]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
class RandomArm(object):
    def __init__(self, initial_arms):
        self.arms = initial_arms

    def get_action(self):
        return np.random.choice(self.arms)

    def update(self, a_t, r_t):
        pass

    def reset(self):
        pass
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



