GStars
    microsoft

    microsoft/ML-For-Beginners

    12 weeks, 26 lessons, 52 quizzes, classic Machine Learning for all

    education
    machine-learning
    data-science
    machine-learning-algorithms
    machinelearning
    machinelearning-python
    microsoft-for-beginners
    ml
    python
    r
    scikit-learn
    scikit-learn-python
    Jupyter Notebook
    MIT
    82.4K stars
    19.3K forks
    82.4K watching
    Updated 2/27/2026
    View on GitHub
    Backblaze Advertisement

    Loading star history...

    Health Score

    5.6

    Weekly Growth

    +0

    +0.0% this week

    Contributors

    1

    Total contributors

    Open Issues

    6

    Generated Insights

    About ML-For-Beginners

    GitHub license GitHub contributors GitHub issues GitHub pull-requests PRs Welcome

    GitHub watchers GitHub forks GitHub stars

    ๐ŸŒ Multi-Language Support

    Supported via GitHub Action (Automated & Always Up-to-Date)

    Arabic | Bengali | Bulgarian | Burmese (Myanmar) | Chinese (Simplified) | Chinese (Traditional, Hong Kong) | Chinese (Traditional, Macau) | Chinese (Traditional, Taiwan) | Croatian | Czech | Danish | Dutch | Estonian | Finnish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Korean | Lithuanian | Malay | Marathi | Nepali | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Thai | Turkish | Ukrainian | Urdu | Vietnamese

    Join Our Community

    Microsoft Foundry Discord

    We have a Discord learn with AI series ongoing, learn more and join us at Learn with AI Series from 18 - 30 September, 2025. You will get tips and tricks of using GitHub Copilot for Data Science.

    Learn with AI series

    Machine Learning for Beginners - A Curriculum

    ๐ŸŒ Travel around the world as we explore Machine Learning by means of world cultures ๐ŸŒ

    Cloud Advocates at Microsoft are pleased to offer a 12-week, 26-lesson curriculum all about Machine Learning. In this curriculum, you will learn about what is sometimes called classic machine learning, using primarily Scikit-learn as a library and avoiding deep learning, which is covered in our AI for Beginners' curriculum. Pair these lessons with our 'Data Science for Beginners' curriculum, as well!

    Travel with us around the world as we apply these classic techniques to data from many areas of the world. Each lesson includes pre- and post-lesson quizzes, written instructions to complete the lesson, a solution, an assignment, and more. Our project-based pedagogy allows you to learn while building, a proven way for new skills to 'stick'.

    โœ๏ธ Hearty thanks to our authors Jen Looper, Stephen Howell, Francesca Lazzeri, Tomomi Imura, Cassie Breviu, Dmitry Soshnikov, Chris Noring, Anirban Mukherjee, Ornella Altunyan, Ruth Yakubu and Amy Boyd

    ๐ŸŽจ Thanks as well to our illustrators Tomomi Imura, Dasani Madipalli, and Jen Looper

    ๐Ÿ™ Special thanks ๐Ÿ™ to our Microsoft Student Ambassador authors, reviewers, and content contributors, notably Rishit Dagli, Muhammad Sakib Khan Inan, Rohan Raj, Alexandru Petrescu, Abhishek Jaiswal, Nawrin Tabassum, Ioan Samuila, and Snigdha Agarwal

    ๐Ÿคฉ Extra gratitude to Microsoft Student Ambassadors Eric Wanjau, Jasleen Sondhi, and Vidushi Gupta for our R lessons!

    Getting Started

    Follow these steps:

    1. Fork the Repository: Click on the "Fork" button at the top-right corner of this page.
    2. Clone the Repository: git clone https://github.com/microsoft/ML-For-Beginners.git

    find all additional resources for this course in our Microsoft Learn collection

    ๐Ÿ”ง Need help? Check our Troubleshooting Guide for solutions to common issues with installation, setup, and running lessons.

    Students, to use this curriculum, fork the entire repo to your own GitHub account and complete the exercises on your own or with a group:

    • Start with a pre-lecture quiz.
    • Read the lecture and complete the activities, pausing and reflecting at each knowledge check.
    • Try to create the projects by comprehending the lessons rather than running the solution code; however that code is available in the /solution folders in each project-oriented lesson.
    • Take the post-lecture quiz.
    • Complete the challenge.
    • Complete the assignment.
    • After completing a lesson group, visit the Discussion Board and "learn out loud" by filling out the appropriate PAT rubric. A 'PAT' is a Progress Assessment Tool that is a rubric you fill out to further your learning. You can also react to other PATs so we can learn together.

    For further study, we recommend following these Microsoft Learn modules and learning paths.

    Teachers, we have included some suggestions on how to use this curriculum.


    Video walkthroughs

    Some of the lessons are available as short form video. You can find all these in-line in the lessons, or on the ML for Beginners playlist on the Microsoft Developer YouTube channel by clicking the image below.

    ML for beginners banner


    Meet the Team

    Promo video

    Gif by Mohit Jaisal

    ๐ŸŽฅ Click the image above for a video about the project and the folks who created it!


    Pedagogy

    We have chosen two pedagogical tenets while building this curriculum: ensuring that it is hands-on project-based and that it includes frequent quizzes. In addition, this curriculum has a common theme to give it cohesion.

    By ensuring that the content aligns with projects, the process is made more engaging for students and retention of concepts will be augmented. In addition, a low-stakes quiz before a class sets the intention of the student towards learning a topic, while a second quiz after class ensures further retention. This curriculum was designed to be flexible and fun and can be taken in whole or in part. The projects start small and become increasingly complex by the end of the 12-week cycle. This curriculum also includes a postscript on real-world applications of ML, which can be used as extra credit or as a basis for discussion.

    Find our Code of Conduct, Contributing, Translation, and Troubleshooting guidelines. We welcome your constructive feedback!

    Each lesson includes

    • optional sketchnote
    • optional supplemental video
    • video walkthrough (some lessons only)
    • pre-lecture warmup quiz
    • written lesson
    • for project-based lessons, step-by-step guides on how to build the project
    • knowledge checks
    • a challenge
    • supplemental reading
    • assignment
    • post-lecture quiz

    A note about languages: These lessons are primarily written in Python, but many are also available in R. To complete an R lesson, go to the /solution folder and look for R lessons. They include an .rmd extension that represents an R Markdown file which can be simply defined as an embedding of code chunks (of R or other languages) and a YAML header (that guides how to format outputs such as PDF) in a Markdown document. As such, it serves as an exemplary authoring framework for data science since it allows you to combine your code, its output, and your thoughts by allowing you to write them down in Markdown. Moreover, R Markdown documents can be rendered to output formats such as PDF, HTML, or Word.

    A note about quizzes: All quizzes are contained in Quiz App folder, for 52 total quizzes of three questions each. They are linked from within the lessons but the quiz app can be run locally; follow the instruction in the quiz-app folder to locally host or deploy to Azure.

    Lesson NumberTopicLesson GroupingLearning ObjectivesLinked LessonAuthor
    01Introduction to machine learningIntroductionLearn the basic concepts behind machine learningLessonMuhammad
    02The History of machine learningIntroductionLearn the history underlying this fieldLessonJen and Amy
    03Fairness and machine learningIntroductionWhat are the important philosophical issues around fairness that students should consider when building and applying ML models?LessonTomomi
    04Techniques for machine learningIntroductionWhat techniques do ML researchers use to build ML models?LessonChris and Jen
    05Introduction to regressionRegressionGet started with Python and Scikit-learn for regression modelsPython โ€ข RJen โ€ข Eric Wanjau
    06North American pumpkin prices ๐ŸŽƒRegressionVisualize and clean data in preparation for MLPython โ€ข RJen โ€ข Eric Wanjau
    07North American pumpkin prices ๐ŸŽƒRegressionBuild linear and polynomial regression modelsPython โ€ข RJen and Dmitry โ€ข Eric Wanjau
    08North American pumpkin prices ๐ŸŽƒRegressionBuild a logistic regression modelPython โ€ข RJen โ€ข Eric Wanjau
    09A Web App ๐Ÿ”ŒWeb AppBuild a web app to use your trained modelPythonJen
    10Introduction to classificationClassificationClean, prep, and visualize your data; introduction to classificationPython โ€ข RJen and Cassie โ€ข Eric Wanjau
    11Delicious Asian and Indian cuisines ๐ŸœClassificationIntroduction to classifiersPython โ€ข RJen and Cassie โ€ข Eric Wanjau
    12Delicious Asian and Indian cuisines ๐ŸœClassificationMore classifiersPython โ€ข RJen and Cassie โ€ข Eric Wanjau
    13Delicious Asian and Indian cuisines ๐ŸœClassificationBuild a recommender web app using your modelPythonJen
    14Introduction to clusteringClusteringClean, prep, and visualize your data; Introduction to clusteringPython โ€ข RJen โ€ข Eric Wanjau
    15Exploring Nigerian Musical Tastes ๐ŸŽงClusteringExplore the K-Means clustering methodPython โ€ข RJen โ€ข Eric Wanjau
    16Introduction to natural language processing โ˜•๏ธNatural language processingLearn the basics about NLP by building a simple botPythonStephen
    17Common NLP Tasks โ˜•๏ธNatural language processingDeepen your NLP knowledge by understanding common tasks required when dealing with language structuresPythonStephen
    18Translation and sentiment analysis โ™ฅ๏ธNatural language processingTranslation and sentiment analysis with Jane AustenPythonStephen
    19Romantic hotels of Europe โ™ฅ๏ธNatural language processingSentiment analysis with hotel reviews 1PythonStephen
    20Romantic hotels of Europe โ™ฅ๏ธNatural language processingSentiment analysis with hotel reviews 2PythonStephen
    21Introduction to time series forecastingTime seriesIntroduction to time series forecastingPythonFrancesca
    22โšก๏ธ World Power Usage โšก๏ธ - time series forecasting with ARIMATime seriesTime series forecasting with ARIMAPythonFrancesca
    23โšก๏ธ World Power Usage โšก๏ธ - time series forecasting with SVRTime seriesTime series forecasting with Support Vector RegressorPythonAnirban
    24Introduction to reinforcement learningReinforcement learningIntroduction to reinforcement learning with Q-LearningPythonDmitry
    25Help Peter avoid the wolf! ๐ŸบReinforcement learningReinforcement learning GymPythonDmitry
    PostscriptReal-World ML scenarios and applicationsML in the WildInteresting and revealing real-world applications of classical MLLessonTeam
    PostscriptModel Debugging in ML using RAI dashboardML in the WildModel Debugging in Machine Learning using Responsible AI dashboard componentsLessonRuth Yakubu

    find all additional resources for this course in our Microsoft Learn collection

    Offline access

    You can run this documentation offline by using Docsify. Fork this repo, install Docsify on your local machine, and then in the root folder of this repo, type docsify serve. The website will be served on port 3000 on your localhost: localhost:3000.

    PDFs

    Find a pdf of the curriculum with links here.

    ๐ŸŽ’ Other Courses

    Our team produces other courses! Check out:

    Azure / Edge / MCP / Agents

    AZD for Beginners Edge AI for Beginners MCP for Beginners AI Agents for Beginners


    Generative AI Series

    Generative AI for Beginners Generative AI (.NET) Generative AI (Java) Generative AI (JavaScript)


    Core Learning

    ML for Beginners Data Science for Beginners AI for Beginners Cybersecurity for Beginners Web Dev for Beginners IoT for Beginners XR Development for Beginners


    Copilot Series

    Copilot for AI Paired Programming Copilot for C#/.NET Copilot Adventure

    Getting Help

    If you get stuck or have any questions about building AI apps. Join fellow learners and experienced developers in discussions about MCP. It's a supportive community where questions are welcome and knowledge is shared freely.

    Microsoft Foundry Discord

    If you have product feedback or errors while building visit:

    Microsoft Foundry Developer Forum

    Discover Repositories

    Search across tracked repositories by name or description