Skip to content

Instantly share code, notes, and snippets.

@rh314
rh314 / variational_optimisation.py
Last active May 31, 2022 15:55 — forked from davidbarber/E.m
Variational Optimisation
# Python version of: https://gist.github.com/davidbarber/16708b9135f13c9599f754f4010a0284
# as per blog post: https://davidbarber.github.io/blog/2017/04/03/variational-optimisation/
# also see https://www.reddit.com/r/MachineLearning/comments/63dhfc/r_evolutionary_optimization_as_a_variational/
from __future__ import print_function
import matplotlib
matplotlib.use('Agg')