This repository has code for two Bayesian models that learn latent binomial probabilities in nonstationary environments. The first is a direct implementation of the model in this paper, while the second is a simpler model.
You can view the example notebooks for the the two learners statically: