mlpack / ensmallen

A header-only C++ library for numerical optimization --

Home Page:http://ensmallen.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Which optimizer should I use?

DKGH opened this issue · comments

commented

I have a pair of vectors: x and y. x is just a linspace thing. y is close to a differentiable function f(x). To fit my function, I need to minimize (y - f(x))^2. y is not differentiable. Which method should I use here?

I have tried LBFGS, which gives good results (but it may still be trapped in a local minima). I have also tried simulated annealing. However that gives arbitrary results.

Have you tried, PSO?

commented

This is working better. Thanks.