Giter Site home page Giter Site logo

hansbuehler / deephedging Goto Github PK

View Code? Open in Web Editor NEW
196.0 10.0 37.0 171.26 MB

Implementation of the vanilla Deep Hedging engine

License: GNU General Public License v3.0

Python 0.33% Jupyter Notebook 99.67%
deep-hedging hedging option-trading

deephedging's People

Contributors

hansbuehler 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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

deephedging's Issues

Financial Market Base Model

Dr. Hans, with the current development of LLM and GPT, do you believe that there exists a Base model for Financial Market? It will be trained with market data and info, and capture the relationships between different markets, e.g. Equity, FX, and etc. Once we have this, we could build other functionalities on top of it, like hedging.

Thanks

Tensorflow 2.11 update breaks use of Keras optimizers, quick fix included.

The current code is incompatible with Tensorflow 2.11 due to updates of the optimizer API:s.

The Adam and RMSprop optimizers no longer has the get_weights() method.

See some info here. A quick fix is to simply pass to the legacy namespace.

This implies changing one row in trainer.py and one row in trainer_serialize.ipynb.

In trainer.py change:
optimzier = config.train("optimizer", "RMSprop", help="Optimizer" )
to:
optimzier = config.train("optimizer", tf.keras.optimizers.legacy.RMSprop(), help="Optimizer" )

And in trainer_serialize.ipynb equivalently set the optimizer as:

...
# trainer
from tensorflow.keras.optimizers.legacy import Adam
config.trainer.train.optimizer = Adam()
...

Apparently the old optimizers are to be kept indefinitely thus this should be a relatively stable solution.

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.