See https://github.com/Kodemannen/Bayesian-Inference-and-Machine-Learning/blob/master/Bayesian_machine_learning.ipynb or open the file bayesian_machine_learning.ipynb in Jupyter-notebook.
Kodemannen/Bayesian-Inference-and-Machine-Learning
A text on Bayesian inference. Applying Bayesian regression and a Bayesian convolutional neural net on data from simulations of the Ising model
Jupyter Notebook