ML-For-Beginners
by microsoft
Free 12-week Microsoft course with 26 lessons that teaches classic machine learning to beginners.
- Stars
- 92,466 stars
- Forks
- 23k forks
- Last push
- 18 days ago
- Activity
- Active
# Clone the course without translations$ git clone --filter=blob:none --sparse https://github.com/microsoft/ML-For-Beginners.gitCommands from the project's README. Run them after installing (see below).
Overview
Understand ML-For-Beginners in 60 seconds
- What it does
- ML for Beginners is a free 12-week, 26-lesson course from Microsoft that teaches classic machine learning, mainly with Scikit-learn. Each lesson uses real data from different parts of the world and includes quizzes and assignments.
- The problem it solves
- Many machine learning resources jump straight into deep learning or assume a strong maths background. This curriculum builds up classic techniques like regression, classification and clustering step by step through projects.
- Why choose it
- Choose it for a structured, project-based introduction to classic ML that's free and well supported. It intentionally avoids deep learning, which Microsoft covers in a separate AI for Beginners course.
- Who should use it
- Beginners learning machine learning
- Students and teachers wanting a ready-made curriculum
- Python developers new to Scikit-learn
- R users (some lessons include R)
- Setup difficulty
You'll need:
- Python (or GitHub Codespaces in the browser)
- Git and a GitHub account to fork the repo
How ML-For-Beginners works
The curriculum spans 12 weeks and 26 lessons on classic machine learning, primarily using Scikit-learn and avoiding deep learning. Lessons travel around the world, applying techniques to data from many regions.
Each lesson includes a pre-lecture quiz, written instructions, a solution, an assignment and a post-lecture quiz. Students are encouraged to build the projects from understanding rather than running the solution code, which lives in each lesson's solution folder.
You can fork and clone the repository, or open it in GitHub Codespaces to skip local Python setup. A sparse clone skips the 50+ translations to speed up the download, and a troubleshooting guide covers setup issues.
Features
Key features
26 lessons
Classic ML over 12 weeks.
Scikit-learn
Hands-on with the standard Python ML library.
Quizzes and assignments
Before and after each lesson.
Project-based
Real data from around the world.
Codespaces ready
Start in the browser without local setup.
50+ translations
Course content in many languages.
Strengths
- Free, structured and beginner friendly
- Backed by Microsoft
- Lots of practice material
- MIT licensed
Limitations
- No deep learning content
- Full clone is large because of translations
- Self-paced; no instructor support
Practical use cases
Learn ML basics
Work through regression, classification and clustering.
Teach a class
Use the lessons and quizzes as a curriculum.
Practice Scikit-learn
Build the lesson projects yourself.
Installation
Install ML-For-Beginners
Commands come from ML for Beginners's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Git
- Python
Supported systems
- Windows
- macOS
- Linux
- 1
Clone without translations
Shellgit clone --filter=blob:none --sparse https://github.com/microsoft/ML-For-Beginners.gitcd ML-For-Beginnersgit sparse-checkout set --no-cone '/*' '!translations' '!translated_images'
- 1
Fork the repository on GitHub
- 2
Clone your fork
Shellgit clone https://github.com/microsoft/ML-For-Beginners.git
- 1
Open your fork in Codespaces
Use the green Code menu and choose Codespaces to start without local Python setup.
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Start with the first lesson's pre-lecture quiz
ML-For-Beginners's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Work through your first ML lesson
Set up the course and complete one lesson the recommended way.
Before you start
- The repository cloned or open in Codespaces
- 1
Take the pre-lecture quiz
- 2
Read the lesson and complete the activities
- 3
Build the project yourself
Check the solution folder only if you get stuck.
- 4
Take the post-lecture quiz and do the assignment
What to expect
A completed lesson with your own working project and assignment.
Next steps
- Continue through the 26 lessons
- See TROUBLESHOOTING.md if setup fails
- Try Microsoft's AI for Beginners for deep learning
Costs and requirements
What it costs to run
- License
- MIT. Free to use and share.Free
- Course
- Free.Free
- Codespaces
- Optional; GitHub may bill Codespaces usage depending on your plan.Depends
Troubleshooting
Common setup issues
Install or setup problems
See TROUBLESHOOTING.md in the repository.
Clone is slow
Use the sparse checkout to skip translations.
Alternatives
Similar AI repositories
LLMs-from-scratch
rasbt
Step-by-step code and notebooks that teach you to build a ChatGPT-like language model in PyTorch from scratch.
AI-For-Beginners
microsoft
Free 12-week Microsoft course with 24 lessons that introduces artificial intelligence to beginners.
superpowers
obra
Collection of agent skills and a working method that guide AI coding agents through software development step by step.
andrej-karpathy-skills
multica-ai
A single CLAUDE.md file of coding rules, based on Andrej Karpathy's notes, that makes Claude Code ask before assuming, keep code simple and change only what you asked.