AI-For-Beginners / zh-HK
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-MO/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 計算的 notebook 功能
- Google Colab: 單獨上傳 notebook(提供免費 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(自動檢查)
- 內容指南:
- 保持教育重點和適合初學者的方式
- 測試所有 notebook 中的代碼示例
- 確保 notebook 從頭到尾正常運行
- 如果修改英文內容,請更新翻譯
- 測驗應用更改: 提交前運行
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 kernel 未找到
- 解決方案:
conda activate ai4beg python -m ipykernel install --user --name ai4beg
問題: Notebook 中未檢測到 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+):
- 對於資源密集型課程,使用雲端虛擬機
- 在訓練模型時關閉其他應用
- 如果內存不足,減少 notebook 中的批量大小
附加說明
對課程講師的建議
- 請參閱
lessons/0-course-setup/for-teachers.md獲取教學指導 - 課程是自包含的,可以按順序教授或單獨選擇
- 預估時間:12 週,每週 2 節課
雲端資源
- Azure for Students: 學生可獲得免費額度
- Microsoft Learn: 課程中鏈接的補充學習路徑
- Binder: 免費但資源有限,且有一些網絡限制
代碼執行選項
- 本地(推薦): 完全控制,最佳性能,支持 GPU
- GitHub Codespaces: 基於雲端的 VS Code,適合快速訪問
- Binder: 基於瀏覽器的 Jupyter,免費但有限
- Azure ML Notebooks: 企業選項,支持 GPU
- Google Colab: 單獨上傳 notebook,提供免費 GPU 層
使用 Notebook
- Notebook 設計為逐個單元格運行以便學習
- 許多 notebook 在首次運行時下載數據集(可能需要一些時間)
- 某些模型需要 GPU 才能有合理的訓練時間
- 儘可能使用預訓練模型以減少計算需求
性能考量
- 後期計算機視覺課程(CNNs、GANs)受益於 GPU
- NLP transformer 課程可能需要大量 RAM
- 從零開始訓練具有教育意義但耗時
- 遷移學習示例可減少訓練時間
免責聲明:
此文件已使用人工智能翻譯服務 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.

