Scipy optimization alternative that does work in pythonista
jantonissen last edited by
Ive been loving this app so far but its a pain scipy doesnt work since it used non-python code.
Im wondering, does anyone have a tip how i can implement optimization modules such as root finding and minimizing of functions? Im mostly looking for the modules fmin_slsqp and brentq.
Anyone have some tips?
Thanx in advance!
JonB last edited by
you sort of have to read through the docs to find the algorithm, then implement it yourself. Actually, it may be easier to find the equivalent matlab functions, since the matlab algorithms are very well documented in words/equations, making it easy to implement in any language...
As an example, here is a simple levenburg-marquardt nonlinear solver:
The termination conditions are hoakey and hard coded, a more general solution would take these as arguments. Also, likely you would tweak the damping parameter adjustment to get good convergence for your problem.
yesimcoder last edited by
seem this app https://itunes.apple.com/us/app/analyser/id1083042861?mt=8 does has scipy , but i's a bit expensive, it's not worth!
ihf last edited by
Interesting app. The description says "Embed a Python 3.5 interceptor, includes numpy, scipy, matplotlib, scikit-learn, scikit-image, pandas, pymc, sympy, statsmodels, astropy, astroML, nipy, nilearn". Several modules are ones that pythonista users have been hoping to see added.