Giter VIP home page Giter VIP logo

deepdow's Introduction

final

Build Status codecov Documentation Status PyPI version DOI

deepdow (read as "wow") is a Python package connecting portfolio optimization and deep learning. Its goal is to facilitate research of networks that perform weight allocation in one forward pass.

Installation

pip install deepdow

Resources

Description

deepdow attempts to merge two very common steps in portfolio optimization

  1. Forecasting of future evolution of the market (LSTM, GARCH,...)
  2. Optimization problem design and solution (convex optimization, ...)

It does so by constructing a pipeline of layers. The last layer performs the allocation and all the previous ones serve as feature extractors. The overall network is fully differentiable and one can optimize its parameters by gradient descent algorithms.

deepdow is not ...

  • focused on active trading strategies, it only finds allocations to be held over some horizon (buy and hold)
    • one implication of this is that there is no need to handle transaction costs
  • a reinforcement learning framework, however one might easily reuse deepdow layers in other deep learning applications
  • a single algorithm, instead, it is a framework that allows for easy experimentation with powerful building blocks

Some features

  • all layers built on torch and fully differentiable
  • integrates differentiable convex optimization (cvxpylayers)
  • implements clustering based portfolio allocation algorithms
  • multiple dataloading strategies (RigidDataLoader, FlexibleDataLoader)
  • integration with mlflow and tensorboard via callbacks
  • provides variety of losses like sharpe ratio, maximum drawdown, ...
  • simple to extend and customize
  • CPU and GPU support

Citing

If you use deepdow (including ideas proposed in the documentation, examples and tests) in your research please make sure to cite it. To obtain all the necessary citing information click on the DOI badge at top of this README and you will be automatically redirected to an external website. Note that currently we are using Zenodo.

deepdow's People

Contributors

jankrepl avatar

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.