jankrepl/deepdow
jankrepl/deepdow has 1,199 GitHub stars and 172 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and +5 in 15 days. Last checked 2026-11-09 16:37 UTC. Last push 2024-01-24.
Portfolio optimization with deep learning.
What you can do
- all layers built on torch and fully differentiable
- integrates differentiable convex optimization (cvxpylayers)
- implements clustering based portfolio allocation algorithms
- multiple dataloading strategies (RigidDataLoader, FlexibleDataLoader)
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +5
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
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
- Forecasting of future evolution of the market (LSTM, GARCH,...)
- 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 is that transaction costs associated with frequent, short-term trades, will not be a primary concern
- a reinforcement learning framework, however, one might easily reuse
deepdowlayers 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
torchand fully differentiable - integrates differentiable convex optimization (
cvxpylayers) - implements clustering based portfolio allocation algorithms
- multiple dataloading strategies (
RigidDataLoader,FlexibleDataLoader) - integration with
mlflowandtensorboardvia 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 the beginning of this README and you will be automatically redirected to an external website.
Note that we are currently using Zenodo.
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,427 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,711 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,274 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
146,024 stars