Properties and Bayesian fitting of restricted Boltzmann machines. (12th November 2018)