agentleFS
MicrosoftKnown publishermicrosoft/ML-For-Beginners/AGENTS.md

ML-For-Beginners

AGENTS.md91k starsChanged 14 months agoMITView on GitHub

This is Machine Learning for Beginners, a comprehensive 12-week, 26-lesson curriculum covering classic machine learning concepts using Python (primarily with Scikit-learn) and R. The repository is designed as a self-paced learning resource with hands-on projects, quizzes, and assignments. Each lesson explores ML concepts through real-world data from various cultures and regions worldwide. Key components: - Educational Content: 26 lessons covering introduction to ML, regression, classification, clustering, NLP, time series, and reinforcement learning - Quiz Application: Vue.js-based quiz app with pre-…

  • Deletes or force-pushes
  • Installs packages
  • Commits and pushes

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about microsoft/ML-For-Beginners

The biggest 5 of 64 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 64

Talked about on GitHub, Bluesky and Hacker News (64 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 12

7 more on Bluesky

On Hacker News · 2

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

22 rules. About 1 is common, 17 are distinctive, and 4 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Check solutions in the solution/ folder if needed

    line 103
  2. Distinctive:

    Use RStudio or Jupyter with R kernel to run R notebooks

    line 115
  3. Distinctive:

    Follow PEP 8 style guidelines

    line 155
  4. Distinctive:

    Use clear, descriptive variable names

    line 156
  5. Very specific:

    Run npm run lint to check and auto-fix issues

    line 163
  6. Distinctive:

    Use relative links for internal references

    line 168
  7. Distinctive:

    Follow existing formatting conventions

    line 169
  8. Distinctive:

    Create Azure Static Web App resource

    line 182
  9. Distinctive:

    Make changes to lesson content: if adding/updating lessons

    line 216
  10. Distinctive:

    Test your code: - ensure all notebook cells run successfully

    line 218
  11. Distinctive:

    Ensure all notebook cells execute without errors

    line 228
  12. Very specific:

    Run npm run lint if modifying quiz-app

    line 229
  13. Distinctive:

    Test any new code examples

    line 231
  14. Distinctive:

    Code of Conduct: Follow the Microsoft Open Source Code of Conduct

    line 236
  15. Distinctive:

    Pre-lecture quiz: - Test baseline knowledge

    line 243
  16. Distinctive:

    Knowledge checks: - Verify understanding throughout

    line 246
  17. Common:

    No secrets in code: Never commit API keys or credentials

    line 297
  18. Distinctive:

    Dependencies: Keep npm and pip packages updated

    line 298
  19. Distinctive:

    Import errors: Ensure all required packages are installed with pip

    line 307
  20. Distinctive:

    Path issues: Run notebooks from their containing directory

    line 308
  21. Very specific:

    Build errors: Delete node_modules and reinstall: rm -rf node_modules && npm install

    line 314
  22. Distinctive:

    RMarkdown rendering: Ensure rmarkdown package is installed

    line 319

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Project Overview

This is Machine Learning for Beginners, a comprehensive 12-week, 26-lesson curriculum covering classic machine learning concepts using Python (primarily with Scikit-learn) and R. The repository is designed as a self-paced learning resource with hands-on projects, quizzes, and assignments. Each lesson explores ML concepts through real-world data from various cultures and regions worldwide.

Key components:

  • Educational Content: 26 lessons covering introduction to ML, regression, classification, clustering, NLP, time series, and reinforcement learning
  • Quiz Application: Vue.js-based quiz app with pre- and post-lesson assessments
  • Multi-language Support: Automated translations to 40+ languages via GitHub Actions
  • Dual Language Support: Lessons available in both Python (Jupyter notebooks) and R (R Markdown files)
  • Project-Based Learning: Each topic includes practical projects and assignments

Repository Structure

ML-For-Beginners/
├── 1-Introduction/         # ML basics, history, fairness, techniques
├── 2-Regression/          # Regression models with Python/R
├── 3-Web-App/            # Flask web app for ML model deployment
├── 4-Classification/      # Classification algorithms
├── 5-Clustering/         # Clustering techniques
├── 6-NLP/               # Natural Language Processing
├── 7-TimeSeries/        # Time series forecasting
├── 8-Reinforcement/     # Reinforcement learning
├── 9-Real-World/        # Real-world ML applications
├── quiz-app/           # Vue.js quiz application
├── translations/       # Auto-generated translations
└── sketchnotes/       # Visual learning aids

Each lesson folder typically contains:

  • README.md - Main lesson content
  • notebook.ipynb - Python Jupyter notebook
  • solution/ - Solution code (Python and R versions)
  • assignment.md - Practice exercises
  • images/ - Visual resources

Setup Commands

For Python Lessons

Most lessons use Jupyter notebooks. Install required dependencies:

# Install Python 3.8+ if not already installed
python --version

# Install Jupyter
pip install jupyter

# Install common ML libraries
pip install scikit-learn pandas numpy matplotlib seaborn

# For specific lessons, check lesson-specific requirements
# Example: Web App lesson
pip install flask

For R Lessons

R lessons are in solution/R/ folders as .rmd or .ipynb files:

# Install R and required packages
# In R console:
install.packages(c("tidyverse", "tidymodels", "caret"))

For Quiz Application

The quiz app is a Vue.js application located in the quiz-app/ directory:

cd quiz-app
npm install

For Documentation Site

To run the documentation locally:

# Install Docsify
npm install -g docsify-cli

# Serve from repository root
docsify serve

# Access at http://localhost:3000

Development Workflow

Working with Lesson Notebooks

  1. Navigate to the lesson directory (e.g., 2-Regression/1-Tools/)
  2. Open the Jupyter notebook:
    jupyter notebook notebook.ipynb
  3. Work through the lesson content and exercises
  4. Check solutions in the solution/ folder if needed

Python Development

  • Lessons use standard Python data science libraries
  • Jupyter notebooks for interactive learning
  • Solution code available in each lesson's solution/ folder

R Development

  • R lessons are in .rmd format (R Markdown)
  • Solutions located in solution/R/ subdirectories
  • Use RStudio or Jupyter with R kernel to run R notebooks

Quiz Application Development

cd quiz-app

# Start development server
npm run serve
# Access at http://localhost:8080

# Build for production
npm run build

# Lint and fix files
npm run lint

Testing Instructions

Quiz Application Testing

cd quiz-app

# Lint code
npm run lint

# Build to verify no errors
npm run build

Note: This is primarily an educational curriculum repository. There are no automated tests for lesson content. Validation is done through:

  • Completing lesson exercises
  • Running notebook cells successfully
  • Checking output against expected results in solutions

Code Style Guidelines

Python Code

  • Follow PEP 8 style guidelines
  • Use clear, descriptive variable names
  • Include comments for complex operations
  • Jupyter notebooks should have markdown cells explaining concepts

JavaScript/Vue.js (Quiz App)

  • Follows Vue.js style guide
  • ESLint configuration in quiz-app/package.json
  • Run npm run lint to check and auto-fix issues

Documentation

  • Markdown files should be clear and well-structured
  • Include code examples in fenced code blocks
  • Use relative links for internal references
  • Follow existing formatting conventions

Build and Deployment

Quiz Application Deployment

The quiz app can be deployed to Azure Static Web Apps:

  1. Prerequisites:
    • Azure account
    • GitHub repository (already forked)
  2. Deploy to Azure:
    • Create Azure Static Web App resource
    • Connect to GitHub repository
    • Set app location: /quiz-app
    • Set output location: dist
    • Azure automatically creates GitHub Actions workflow
  3. GitHub Actions Workflow:
    • Workflow file created at .github/workflows/azure-static-web-apps-*.yml
    • Automatically builds and deploys on push to main branch

Documentation PDF

Generate PDF from documentation:

npm install
npm run convert

Translation Workflow

Important: Translations are automated via GitHub Actions using Co-op Translator.

  • Translations are auto-generated when changes are pushed to main branch
  • DO NOT manually translate content - the system handles this
  • Workflow defined in .github/workflows/co-op-translator.yml
  • Uses Azure AI/OpenAI services for translation
  • Supports 40+ languages

Contributing Guidelines

For Content Contributors

  1. Fork the repository and create a feature branch
  2. Make changes to lesson content if adding/updating lessons
  3. Do not modify translated files - they are auto-generated
  4. Test your code - ensure all notebook cells run successfully
  5. Verify links and images work correctly
  6. Submit a pull request with clear description

Pull Request Guidelines

  • Title format: [Section] Brief description of changes
    • Example: [Regression] Fix typo in lesson 5
    • Example: [Quiz-App] Update dependencies
  • Before submitting:
    • Ensure all notebook cells execute without errors
    • Run npm run lint if modifying quiz-app
    • Verify markdown formatting
    • Test any new code examples
  • PR must include:
    • Description of changes
    • Reason for changes
    • Screenshots if UI changes
  • Code of Conduct: Follow the Microsoft Open Source Code of Conduct
  • CLA: You will need to sign the Contributor License Agreement

Lesson Structure

Each lesson follows a consistent pattern:

  1. Pre-lecture quiz - Test baseline knowledge
  2. Lesson content - Written instructions and explanations
  3. Code demonstrations - Hands-on examples in notebooks
  4. Knowledge checks - Verify understanding throughout
  5. Challenge - Apply concepts independently
  6. Assignment - Extended practice
  7. Post-lecture quiz - Assess learning outcomes

Common Commands Reference

# Python/Jupyter
jupyter notebook                    # Start Jupyter server
jupyter notebook notebook.ipynb     # Open specific notebook
pip install -r requirements.txt     # Install dependencies (where available)

# Quiz App
cd quiz-app
npm install                        # Install dependencies
npm run serve                      # Development server
npm run build                      # Production build
npm run lint                       # Lint and fix

# Documentation
docsify serve                      # Serve documentation locally
npm run convert                    # Generate PDF

# Git workflow
git checkout -b feature/my-change  # Create feature branch
git add .                         # Stage changes
git commit -m "Description"       # Commit changes
git push origin feature/my-change # Push to remote

Additional Resources

Key Technologies

  • Python: Primary language for ML lessons (Scikit-learn, Pandas, NumPy, Matplotlib)
  • R: Alternative implementation using tidyverse, tidymodels, caret
  • Jupyter: Interactive notebooks for Python lessons
  • R Markdown: Documents for R lessons
  • Vue.js 3: Quiz application framework
  • Flask: Web application framework for ML model deployment
  • Docsify: Documentation site generator
  • GitHub Actions: CI/CD and automated translations

Security Considerations

  • No secrets in code: Never commit API keys or credentials
  • Dependencies: Keep npm and pip packages updated
  • User input: Flask web app examples include basic input validation
  • Sensitive data: Example datasets are public and non-sensitive

Troubleshooting

Jupyter Notebooks

  • Kernel issues: Restart kernel if cells hang: Kernel → Restart
  • Import errors: Ensure all required packages are installed with pip
  • Path issues: Run notebooks from their containing directory

Quiz Application

  • npm install fails: Clear npm cache: npm cache clean --force
  • Port conflicts: Change port with: npm run serve -- --port 8081
  • Build errors: Delete node_modules and reinstall: rm -rf node_modules && npm install

R Lessons

  • Package not found: Install with: install.packages("package-name")
  • RMarkdown rendering: Ensure rmarkdown package is installed
  • Kernel issues: May need to install IRkernel for Jupyter

Project-Specific Notes

  • This is primarily a learning curriculum, not production code
  • Focus is on understanding ML concepts through hands-on practice
  • Code examples prioritize clarity over optimization
  • Most lessons are self-contained and can be completed independently
  • Solutions provided but learners should attempt exercises first
  • Repository uses Docsify for web documentation without build step
  • Sketchnotes provide visual summaries of concepts
  • Multi-language support makes content globally accessible

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.