Git Product home page Git Product logo

jpcolino / ipython_notebooks Goto Github PK

View Code? Open in Web Editor NEW
95.0 95.0 48.0 49.81 MB

Set of Jupyter (iPython) notebooks (and few pdf-presentations) about things that I am interested on, like Computer Science, Statistics and Machine-Learning, Artificial Intelligence (AI), Financial Engineering, Optimization, Stochastic Modelling, Time-Series forecasting, Science in general... and more.

License: GNU General Public License v3.0

Jupyter Notebook 100.00%
artificial-intelligence computer-science machine-learning optimization science statistics stochastic-models svm time-series

ipython_notebooks's People

Contributors

jpcolino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipython_notebooks's Issues

@property memoization

Using your implementation of LSM MC for derivatives pricing from https://github.com/jpcolino/IPython_notebooks/blob/master/Least%20Square%20Monte%20Carlo%20Implementation%20in%20a%20Python%20Class.ipynb - thanks! Noticed that the class is immutable and you're using @property decorator for all calculated properties. Unfortunately, @property doesn't cache (memoize) the results so all the "expensive" properties (e.g. MCprice_matrix) are recalculated many times over when referenced from other methods.

A quick fix (and a huge speedup) is possible via Boltons package from boltons.cacheutils import cachedproperty and then using @cachedproperty instead of @property everywhere.

I understand that the source code is pretty old, so just letting you know this in case you're still maintaining it (or any derivations of it). I found it useful, so possibly others find it useful too.

Thanks.

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.