pylbfgs icon indicating copy to clipboard operation
pylbfgs copied to clipboard

Using OWL-QN correctly

Open humatic opened this issue 9 years ago • 2 comments
trafficstars

I'm trying to minimize the L1 norm of x for the system Ax==b using the OWL-QN algorithm. However, it's not clear to me from the documentations of libLBFGS and pyLBFGS how to do this. I'm assuming that we should use the fmin_lbfgs(...) method, but how to define the callable f and its gradient vector g? Any quick suggestions?

humatic avatar May 20 '16 15:05 humatic

Yeah, same here. Could somebody explain how to set the property for OWL-QN correctly? I think that the function handle f is independent of the chosen algorithm. To my understanding, this can be set somehow. But does anybody knows how?

mx-strk avatar Jul 13 '17 16:07 mx-strk

@mettmexx It has been over a year since I struggled with this, so I don't really remember all of the details. However I did ultimately figure it out (for my use-case). Maybe take a look at my alternative, Python 3 version "pylbfgs" here: https://bitbucket.org/rtaylor/pylbfgs Also, I use it in an actual project here: http://www.pyrunner.com/weblog/2016/05/26/compressed-sensing-python/ No promises, but those links might help you. Cheers!

humatic avatar Jul 13 '17 20:07 humatic