The Levenberg-Marquardt algorithm is a minimization algorithm for functions expressed as a sum of squared errors
This can be used for curve-fitting, multidimensional function minimization, and neural networks training
Go to https://github.com/ktklam9/HaskellLM for example usage (in tests)