AI-For-Beginners / zh-MO
AGENTS.md69k starsChanged 14 months agoMITView on GitHub
AI for Beginners 是一個為期 12 週、共 24 節課的全面課程,涵蓋人工智慧的基礎知識。本教育資源庫包含使用 Jupyter Notebooks 的實作課程、小測驗以及實作實驗室。課程內容包括: 主要技術: Python 3、Jupyter Notebooks、TensorFlow、PyTorch、Keras、OpenCV、Vue.js(用於測驗應用程式) 架構: 教育內容資源庫,按主題區域組織的 Jupyter Notebooks,輔以基於 Vue.js 的測驗應用程式以及廣泛的多語言支援。 課程設計基於 Python 和 Jupyter Notebooks 運行。推薦使用 miniconda: 測驗應用程式是一個獨立的 Vue.js 應用程式,位於 etc/quiz-app/: 後期課程顯著受益於 GPU 加速: 這是一個專注於學習內容的教育資源庫,而非軟體測試,因此沒有傳統的測試套件。 無需構建過程 - Jupyter Notebooks 可直接執行。 資源庫使用 Docsify 作為文件系統: - index.html 作為入口點 - 無需構建 - 直接通過 GitHub Pages 提供服務 - 訪問地址:https://microsoft.github.io/AI-For-Beginners/
- Deletes or force-pushes
- Installs packages
Trending
Quiet since August.about the whole repository
Who's talking about microsoft/AI-For-Beginners
- A Hacker News story“Artificial Intelligence for Beginners”Hacker News · Jun 13, 2023 · 25 points
- A Hacker News story“AI for Beginners”Hacker News · Nov 15, 2025 · 4 points
- A Hacker News story“Microsoft's AI for Beginners”Hacker News · Aug 15, 2022 · 4 points
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / AI-For-Beginners ⭐ 23,859 (+316) 🗒 Jupyter Notebook 12 …”Bluesky · Dec 3, 2023 · 3 likes
- web1992/github-trending“Github trending [microsoft/AI-For-Beginners] AI入门课程24节支持多语言”GitHub · Aug 4, 2026 · 1 reactions
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on Bluesky, Hacker News and GitHub (15 times).
On Bluesky · 11
- Dec 3, 2023🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / AI-For-Beginners ⭐ 23,859 (+316) 🗒 Jupyter Notebook 12 Weeks, 24 Lessons, AI for All! — @github-trending.bsky.social3 likes and reposts · 1 reply
- Aug 3, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 microsoft / AI-For-Beginners ⭐ 60,384 (+1,902) 🗒 Jupyter Notebook 12 Weeks, 24 Lessons, AI for All! — @github-trending.bsky.social1 likes and repost · 1 reply
- Aug 1, 2026📈 Today's GitHub Trending: 1. https://github.com/microsoft/AI-For-Beginners - Jupyter Notebook, 869 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- Jul 1, 2026github.com/microsoft/A... Most people collect AI tools. Smart people learn AI fundamentals. Tools change every month. Fundamentals stay… — @hrswati.bsky.social1 likes and repost · 1 reply
- Sep 21, 2025https://github.com/microsoft/AI-For-Beginners — @tom-doerr.bsky.social1 likes and repost
6 more on Bluesky
- Jun 26, 2023🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / AI-For-Beginners ⭐ 13,463 (+109) 🗒 Jupyter Notebook 12 Weeks, 24 Lessons, AI for All! — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 13, 2023📦 microsoft / AI-For-Beginners ⭐ 10,374 (+1,097) 🗒 Jupyter Notebook 12 Weeks, 24 Lessons, AI for All! — @github-trending.bsky.social1 likes and repost
- Jul 30, 2026📈 Today's GitHub Trending: 1. https://github.com/huggingface/speech-to-speech - Python, 627 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
- Nov 25, 2023🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / AI-For-Beginners ⭐ 21,198 (+144) 🗒 Jupyter Notebook 12 Weeks, 24 Lessons, AI for All! — @github-trending.bsky.social0 likes and reposts · 1 reply
- Nov 11, 2023🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / AI-For-Beginners ⭐ 20,138 (+462) 🗒 Jupyter Notebook 12 Weeks, 24 Lessons, AI for All! — @github-trending.bsky.social0 likes and reposts · 1 reply
- Nov 7, 2023🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / AI-For-Beginners ⭐ 18,370 (+170) 🗒 Jupyter Notebook 12 Weeks, 24 Lessons, AI for All! — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 3
- Jun 13, 2023Artificial Intelligence for Beginners25 points · 1 comment
- Nov 15, 2025AI for Beginners4 points
- Aug 15, 2022Microsoft's AI for Beginners4 points
On GitHub · 1
- Aug 4, 2026Github trending [microsoft/AI-For-Beginners] AI入门课程24节支持多语言 — web1992/github-trending1 reaction
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- translations/ar/AGENTS.mdAGENTS.md
- translations/bg/AGENTS.mdAGENTS.md
- translations/bn/AGENTS.mdAGENTS.md
- translations/cs/AGENTS.mdAGENTS.md
- translations/da/AGENTS.mdAGENTS.md
- translations/de/AGENTS.mdAGENTS.md
- translations/el/AGENTS.mdAGENTS.md
- translations/en/AGENTS.mdAGENTS.md
- translations/es/AGENTS.mdAGENTS.md
- translations/et/AGENTS.mdAGENTS.md
- translations/fa/AGENTS.mdAGENTS.md
- translations/fi/AGENTS.mdAGENTS.md
- translations/fr/AGENTS.mdAGENTS.md
- translations/he/AGENTS.mdAGENTS.md
- translations/hi/AGENTS.mdAGENTS.md
- translations/hr/AGENTS.mdAGENTS.md
- translations/hu/AGENTS.mdAGENTS.md
- translations/id/AGENTS.mdAGENTS.md
- translations/it/AGENTS.mdAGENTS.md
- translations/ja/AGENTS.mdAGENTS.md
- translations/km/AGENTS.mdAGENTS.md
- translations/kn/AGENTS.mdAGENTS.md
- translations/ko/AGENTS.mdAGENTS.md
- translations/lt/AGENTS.mdAGENTS.md
- translations/ml/AGENTS.mdAGENTS.md
- translations/mr/AGENTS.mdAGENTS.md
- translations/ms/AGENTS.mdAGENTS.md
- translations/my/AGENTS.mdAGENTS.md
- translations/ne/AGENTS.mdAGENTS.md
- translations/nl/AGENTS.mdAGENTS.md
- translations/no/AGENTS.mdAGENTS.md
- translations/pa/AGENTS.mdAGENTS.md
- translations/pcm/AGENTS.mdAGENTS.md
- translations/pl/AGENTS.mdAGENTS.md
- translations/pt-BR/AGENTS.mdAGENTS.md
- translations/pt-PT/AGENTS.mdAGENTS.md
- translations/ro/AGENTS.mdAGENTS.md
- translations/ru/AGENTS.mdAGENTS.md
- translations/sk/AGENTS.mdAGENTS.md
- translations/sl/AGENTS.mdAGENTS.md
- translations/sr/AGENTS.mdAGENTS.md
- translations/sv/AGENTS.mdAGENTS.md
- translations/sw/AGENTS.mdAGENTS.md
- translations/ta/AGENTS.mdAGENTS.md
- translations/te/AGENTS.mdAGENTS.md
- translations/th/AGENTS.mdAGENTS.md
- translations/tl/AGENTS.mdAGENTS.md
- translations/tr/AGENTS.mdAGENTS.md
- translations/uk/AGENTS.mdAGENTS.md
- translations/ur/AGENTS.mdAGENTS.md
- translations/vi/AGENTS.mdAGENTS.md
- translations/zh-CN/AGENTS.mdAGENTS.md
- translations/zh-HK/AGENTS.mdAGENTS.md
- translations/zh-TW/AGENTS.mdAGENTS.md
The file
Files
AGENTS.md
專案概述
AI for Beginners 是一個為期 12 週、共 24 節課的全面課程,涵蓋人工智慧的基礎知識。本教育資源庫包含使用 Jupyter Notebooks 的實作課程、小測驗以及實作實驗室。課程內容包括:
- 使用知識表示和專家系統的符號 AI
- 使用 TensorFlow 和 PyTorch 的神經網路與深度學習
- 電腦視覺技術與架構
- 自然語言處理 (NLP),包括 transformers 和 BERT
- 專題:遺傳演算法、強化學習、多代理系統
- AI 倫理與負責任的 AI 原則
主要技術: Python 3、Jupyter Notebooks、TensorFlow、PyTorch、Keras、OpenCV、Vue.js(用於測驗應用程式)
架構: 教育內容資源庫,按主題區域組織的 Jupyter Notebooks,輔以基於 Vue.js 的測驗應用程式以及廣泛的多語言支援。
設置指令
主要開發環境 (Python/Jupyter)
課程設計基於 Python 和 Jupyter Notebooks 運行。推薦使用 miniconda:
# Clone the repository
git clone https://github.com/microsoft/ai-for-beginners
cd ai-for-beginners
# Create and activate conda environment
conda env create --name ai4beg --file environment.yml
conda activate ai4beg
# Start Jupyter Notebook
jupyter notebook
# OR
jupyter lab替代方案:使用 devcontainer
# Open in VS Code and select "Reopen in Container" when prompted
# The devcontainer will automatically set up the environment測驗應用程式設置
測驗應用程式是一個獨立的 Vue.js 應用程式,位於 etc/quiz-app/:
cd etc/quiz-app
npm install
npm run serve # Development server
npm run build # Production build
npm run lint # Lint and fix files開發工作流程
使用 Jupyter Notebooks
- 本地開發:
- 啟用 conda 環境:
conda activate ai4beg - 啟動 Jupyter:
jupyter notebook或jupyter lab - 瀏覽到課程資料夾並打開
.ipynb文件 - 互動式執行單元以跟隨課程
- 啟用 conda 環境:
- 使用 VS Code 和 Python 擴展:
- 在 VS Code 中打開資源庫
- 安裝 Python 擴展
- VS Code 會自動檢測並使用 conda 環境
- 直接在 VS Code 中打開
.ipynb文件
- 雲端開發:
- GitHub Codespaces: 點擊 "Code" → "Codespaces" → "Create codespace on main"
- Binder: 使用 README 中的 Binder 徽章在瀏覽器中啟動
- 注意:Binder 資源有限,且有部分網路訪問限制
高級課程的 GPU 支援
後期課程顯著受益於 GPU 加速:
- Azure Data Science VM: 使用支援 GPU 的 NC 系列虛擬機
- Azure Machine Learning: 使用具備 GPU 計算的筆記本功能
- Google Colab: 單獨上傳筆記本(提供免費 GPU 支援)
測驗應用程式開發
cd etc/quiz-app
npm run serve # Hot-reload development server at http://localhost:8080測試說明
這是一個專注於學習內容的教育資源庫,而非軟體測試,因此沒有傳統的測試套件。
驗證方法:
- Jupyter Notebooks: 按順序執行單元以驗證程式碼範例是否正常運行
- 測驗應用程式測試: 通過開發伺服器進行手動測試
- 翻譯驗證: 檢查
translations/資料夾中的翻譯內容 - 測驗應用程式檢查: 在
etc/quiz-app/中執行npm run lint
執行程式碼範例:
# Activate environment first
conda activate ai4beg
# Run Python scripts directly
python lessons/4-ComputerVision/07-ConvNets/pytorchcv.py
# Or execute notebooks
jupyter notebook lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb程式碼風格
Python 程式碼風格
- 遵循教育程式碼的標準 Python 慣例
- 優先考慮學習的清晰、可讀性程式碼,而非最佳化
- 添加註解以解釋關鍵概念
- 適合 Jupyter Notebook:單元應儘可能自包含
- 對課程內容無嚴格的程式碼檢查要求
JavaScript/Vue.js(測驗應用程式)
- ESLint 配置位於
etc/quiz-app/package.json - 執行
npm run lint以檢查並自動修復問題 - 遵循 Vue 2.x 慣例
- 基於元件的架構
文件組織
lessons/
├── 0-course-setup/ # Setup instructions
├── 1-Intro/ # Introduction to AI
├── 2-Symbolic/ # Symbolic AI
├── 3-NeuralNetworks/ # Neural Networks basics
├── 4-ComputerVision/ # Computer Vision
├── 5-NLP/ # Natural Language Processing
├── 6-Other/ # Other AI techniques
├── 7-Ethics/ # AI Ethics
└── X-Extras/ # Additional content
etc/
├── quiz-app/ # Vue.js quiz application
└── quiz-src/ # Quiz source files
translations/ # Multi-language translations構建與部署
Jupyter 內容
無需構建過程 - Jupyter Notebooks 可直接執行。
測驗應用程式
cd etc/quiz-app
# Development
npm run serve
# Production build
npm run build # Outputs to etc/quiz-app/dist/
# Deploy to Azure Static Web Apps
# Azure automatically creates GitHub Actions workflow
# See etc/quiz-app/README.md for detailed deployment instructions文件網站
資源庫使用 Docsify 作為文件系統:
index.html作為入口點- 無需構建 - 直接通過 GitHub Pages 提供服務
- 訪問地址:https://microsoft.github.io/AI-For-Beginners/
貢獻指南
提交請求流程
- 標題格式: 清晰、描述性的標題,說明更改內容
- CLA 要求: 必須簽署 Microsoft CLA(自動檢查)
- 內容指南:
- 保持教育重點和適合初學者的方式
- 測試筆記本中的所有程式碼範例
- 確保筆記本能從頭到尾運行
- 如果修改英文內容,請更新翻譯
- 測驗應用程式更改: 提交前執行
npm run lint
翻譯貢獻
- 翻譯通過 GitHub Actions 使用 co-op-translator 自動完成
- 手動翻譯存放於
translations/<language-code>/ - 測驗翻譯存放於
etc/quiz-app/src/assets/translations/ - 支援語言:40+ 種語言(完整列表見 README)
活躍貢獻領域
請參閱 etc/CONTRIBUTING.md 了解當前需求:
- 深度強化學習部分
- 物件檢測改進
- 命名實體識別範例
- 自定義嵌入訓練範例
環境配置
必需的依賴項
# Core Python packages (from requirements.txt)
tensorflow==2.17.0
torch (via conda)
torchvision (via conda)
keras==3.5.0
opencv (via conda)
scikit-learn
numpy==1.26
pandas==2.2.2
matplotlib==3.9
jupyter環境變數
基本使用無需特殊環境變數。
對於 Azure 部署(測驗應用程式):
AZURE_STATIC_WEB_APPS_API_TOKEN(由 Azure 自動設置)
偵錯與故障排除
常見問題
問題: Conda 環境創建失敗
- 解決方案: 先更新 conda:
conda update conda -y - 確保有足夠的磁碟空間(建議 50GB)
問題: 找不到 Jupyter 核心
- 解決方案:
conda activate ai4beg python -m ipykernel install --user --name ai4beg
問題: 筆記本中未檢測到 GPU
- 解決方案:
- 驗證 CUDA 安裝:
nvidia-smi - 檢查 PyTorch GPU:
python -c "import torch; print(torch.cuda.is_available())" - 檢查 TensorFlow GPU:
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
- 驗證 CUDA 安裝:
問題: 測驗應用程式無法啟動
- 解決方案:
cd etc/quiz-app rm -rf node_modules package-lock.json npm install npm run serve
問題: Binder 超時或阻止下載
- 解決方案: 使用 GitHub Codespaces 或本地設置以獲得更好的資源訪問
記憶體問題
某些課程需要大量 RAM(建議 8GB+):
- 對於資源密集型課程,使用雲端虛擬機
- 在訓練模型時關閉其他應用程式
- 如果記憶體不足,減小筆記本中的批次大小
附加說明
對課程講師的建議
- 請參閱
lessons/0-course-setup/for-teachers.md獲取教學指導 - 課程是自包含的,可以按順序教學或單獨選擇
- 預估時間:每週 2 節課,共 12 週
雲端資源
- Azure for Students: 學生可獲得免費額度
- Microsoft Learn: 課程中鏈接的補充學習路徑
- Binder: 免費但資源有限,且有部分網路限制
程式碼執行選項
- 本地(推薦): 完全控制,最佳效能,支援 GPU
- GitHub Codespaces: 基於雲端的 VS Code,快速訪問
- Binder: 基於瀏覽器的 Jupyter,免費但有限制
- Azure ML Notebooks: 企業級選項,支援 GPU
- Google Colab: 單獨上傳筆記本,提供免費 GPU 層
使用筆記本
- 筆記本設計為逐單元運行以便學習
- 許多筆記本在首次運行時會下載數據集(可能需要一些時間)
- 某些模型需要 GPU 才能在合理時間內完成訓練
- 儘可能使用預訓練模型以減少計算需求
效能考量
- 後期的電腦視覺課程(CNNs、GANs)受益於 GPU
- NLP transformer 課程可能需要大量 RAM
- 從頭開始訓練具有教育意義,但耗時
- 遷移學習範例可最大限度減少訓練時間
免責聲明:
本文件已使用 AI 翻譯服務 Co-op Translator 進行翻譯。雖然我們致力於提供準確的翻譯,但請注意,自動翻譯可能包含錯誤或不準確之處。原始文件的母語版本應被視為權威來源。對於關鍵資訊,建議使用專業人工翻譯。我們對因使用此翻譯而產生的任何誤解或錯誤解釋不承擔責任。
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
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.

