#630 · Primary category: Education & Research

MachineLearningStocks

algorithmic-trading data-science guide historical-stock-fundamentals machine-learning python quantitative-finance scikit-learn sklearn stock stock-prediction stock-prices trading tutorial yahoo-finance

Using python and scikit-learn to make stock predictions

Project last updated:06/17/24

GitHub Stars

2.0K

Forks

539

Contributors

4

License

MIT

Why we included this project

MachineLearningStocks is a readable, end-to-end template for anyone who wants to see how machine learning is actually applied to stock prediction, not just a pile of isolated code samples. The project takes you through the whole workflow: cleaning historical price and fundamentals data with pandas, training a scikit-learn classifier that links metrics like PE ratio and debt/equity to annual price moves against an index, running a simple backtest, and then generating predictions on current data. The author is honest that this is an educational template rather than something to live trade as-is, which makes it a low-risk way to build intuition before risking real money. Developers and data scientists will find it a solid, extensible baseline to tinker with on the way to their own trading ideas, especially since the README lists plenty of directions for experimentation.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category