QUANTUM MECHANICS AND BAYESIAN MACHINES