Code Monkey home page Code Monkey logo

Comments (8)

springcoil avatar springcoil commented on June 14, 2024 1

https://github.com/jakevdp/cython_template might be useful

from pyflux.

RJT1990 avatar RJT1990 commented on June 14, 2024

For this task the main bottleneck to optimize are the recursions within _model(). For each model:

ARIMA - the ma recursion
GARCH - the entire recursion
GAS - the entire recursion
GAS Regression - the entire recursion
GP-NARX - no recursions here
Gaussian state space - the kalman filter/smoother recursions
Non-Gaussian state space - should be fine
VAR - the covariance matrix construction

BBVI - the outer for loop
MH - the outer for loop

from pyflux.

RJT1990 avatar RJT1990 commented on June 14, 2024

That's really useful - seems like the right way to go to ensure Cython isn't mandatory for users. Can't wait to get stuck into this once I've got the other stuff out of the way.

from pyflux.

RJT1990 avatar RJT1990 commented on June 14, 2024

Tried that template out tonight - works a treat. Will have first Cythonized version this weekend!

from pyflux.

springcoil avatar springcoil commented on June 14, 2024

Cool. Glad it worked.

On 19 Jul 2016 9:55 PM, "Ross Taylor" [email protected] wrote:

Tried that template out tonight - works a treat. Will have first
Cythonized version this weekend!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#5 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA8DiLVY2xLSmn8GbKTcDc9tNZt9p_PFks5qXTmygaJpZM4I3I-b
.

from pyflux.

RJT1990 avatar RJT1990 commented on June 14, 2024

Update after recent release:

  • GARCH models still need to be Cythonized.
  • Need to find good way of getting performance up for GAS/GARCH without compromising the flexibility of allowing users to specify their own assumptions/distributions

from pyflux.

RJT1990 avatar RJT1990 commented on June 14, 2024

Update: GAS and GASReg models to undergo further Cythonization this weekend.

from pyflux.

RJT1990 avatar RJT1990 commented on June 14, 2024

GAS models Cythonized further - will be in next release; speedups of 1.5-2x.

from pyflux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.