5 ms·
Thanks for the feedback, everyone -- happy to answer questions here or in the Disqus comments on my blog.
by mzucker 10y ago
Thanks for the feedback, everyone -- happy to answer questions here or in the Disqus comments on my blog.
- tomn 10y agoThis is really interesting, thanks! If you decide to try to make this faster, check out ceres[0] a non-linear least squares optimisation framework that does automatic differentiation using a clever C++ template hack. I've used it a few times to solve these kind of problems and found it to be very good! [0] http://ceres-solver.org/ http://ceres-solver.org/
- mzucker 10y agoYep, I'm still waiting to use ceres for something - I didn't end up using it on my image approximation project https://mzucker.github.io/2016/08/01/gabor-2.html https://mzucker.github.io/2016/08/01/gabor-2.html because it doesn't work well with inequality constraints.
- tomn 10y agoAh yes, only supporting constraints on the parameters can be annoying if your problem requires that.
- owernonvl 10y agoI really enjoyed the article! By the way, you mentioned using word boundaries in regexes to replace variable names. GNU Emacs regexes can actually include "symbol boundaries" (which are a little better for variable names than word boundaries), represented as "\_<symbol\_>". Personally, I like using the "highlight-symbol" package, which provides the "highlight-symbol-query-replace" command to basically execute M-% for the symbol at point.
- mzucker 10y agoCool - will check it out!