---
title: "Machine Learning"
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/machine-learning
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/machine-learning.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/31%20Machine%20Learning
modified: 2026-11-23
index: https://www.quantconnect.com/llms.txt
---

# Machine Learning

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Writing Algorithms](https://www.quantconnect.com/docs/v2/writing-algorithms.md) > Machine Learning

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Pages in This Section

- [Key Concepts](https://www.quantconnect.com/docs/v2/writing-algorithms/machine-learning/key-concepts.md): Machine learning is a field of study that combines statistics and computer science to build intelligent systems that predict outcomes.
- [Training Models](https://www.quantconnect.com/docs/v2/writing-algorithms/machine-learning/training-models.md): Algorithms usually must process each timeslice within 10 minutes, but the Train method allows you to increase this time to train ML models.
- [Popular Libraries](https://www.quantconnect.com/docs/v2/writing-algorithms/machine-learning/popular-libraries.md): These are examples of using some of the most common machine learning libraries in an algorithm.
- [Hugging Face](https://www.quantconnect.com/docs/v2/writing-algorithms/machine-learning/hugging-face/key-concepts.md)
