Hi everyone,
A group of my friends and I have been working hard on an open-source implementation for the research laid out in the textbook Advances in Financial Machine Learning by Marcos Lopez de Prado, called mlfinlab. We have recently released it to the PyPi index.
pip install mlfinlab
We hope that such a package will have uses in this community. I recently wrote a long-form blog article titled: A Laboratory for Machine Learning in Finance which lays out much of the work in depth.
The package is also available on Github:
One of the great outcomes of this project was that we got to spend more time working on some of the great ideas laid out in the book. We spent a lot of time focused on meta-labeling and believe you will find that the results are promising.
TLDR:
- Package based on the textbook: Advances in Financial Machine Learning
- It specifically addresses the problems found in financial machine learning
- The book has some barriers to entry, the package reduces this friction
Features at the moment:
- Creating new financial data structures and sampling techniques with better statistical properties
- Fixes some problems with futures trading by making use of the ETF trick
- Provides a new labeling technique called the Triple Barrier Method (used in classification)
- Introduces meta-labeling and how it can be used to filter out false positives
- multiprocessing engine for speed
New features in the pipeline:
- Sample weighting
- Finance specific CV techniques such as Purge and Embargo CV
- New features that maintain memory and are stationary (Fractional Diff)
- Using structural breaks to filter events
- New bet sizing algorithms. (Upweight positions that have a high probability)
Jacques Joubert
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!