def oneLR(mumax, mu): """ One term of the Lai & Robbins lower bound for Exponential arms: (mumax - mu) / KL(mu, mumax). """ return (mumax - mu) / klExp(mu, mumax)
def kl(x, y): """ The kl(x, y) to use for this arm.""" return klExp(x, y)