omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Scipy optimization alternative that does work in pythonista

    Pythonista
    4
    4
    5127
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jantonissen
      jantonissen last edited by

      Hi guys,

      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!

      1 Reply Last reply Reply Quote 0
      • JonB
        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:
        https://gist.github.com/a8885911babb1967bc949dfce072010e

        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.

        1 Reply Last reply Reply Quote 0
        • yesimcoder
          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!

          1 Reply Last reply Reply Quote 0
          • ihf
            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors