Bayesian optimal probability learner