skfolio: portfolio optimization and risk management built on scikit-learn

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Data scientists who already use scikit-learn can now build, cross-validate and stress-test optimized portfolios without learning a separate finance API.

Read this as

skfolio is a free, open-source Python library for portfolio optimization, deciding how much money to put into each investment, and risk management. It works the same way as scikit-learn, the popular machine-learning toolkit, so people already trained on scikit-learn can use the same commands to build portfolios, tune settings and test how allocations survive market shocks. It affects data scientists and quantitative analysts, though it handles only modeling, not live trading.

skfolio lowers the cost of turning return predictions into actual portfolios by making scikit-learn's workflow apply to portfolio construction. Firms whose data scientists already know scikit-learn can reuse that skill rather than training staff on specialized finance libraries, which most competitors lack cross-validation and tuning support in. It is free under a 3-Clause BSD license, with paid enterprise support via Skfolio Labs. It does not cover data collection, execution or live trading.

skfolio wraps portfolio optimization models in scikit-learn's estimator API (fit, predict, transform), so models plug into cross-validation, grid search and pipeline composition. Dependencies are numpy, scipy, pandas and cvxpy-base for convex optimization, supporting Python 3.10–3.13. It adds built-in stress-testing of allocations under adverse conditions. Limitations: it covers only modeling, no data collection, execution or live-market handling, and no benchmark numbers are given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

skfolio scikit-learn Skfolio Labs cvxpy-base JupyterLite PyPI

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading