https://medium.com/@monocosmo77/research-on-non-convex-potentials-part7-machine-learning-optimization-66af31a51633