https://medium.com/@monocosmo77/research-on-non-convex-potentials-part6-machine-learning-optimization-888500354d2a