How to make a machine learn continuously: a tutorial of the Bayesian approach