[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-ageron--handson-ml2":3,"tool-ageron--handson-ml2":65},[4,23,32,40,49,57],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":22},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,2,"2026-04-05T10:45:23",[13,14,15,16,17,18,19,20,21],"图像","数据工具","视频","插件","Agent","其他","语言模型","开发框架","音频","ready",{"id":24,"name":25,"github_repo":26,"description_zh":27,"stars":28,"difficulty_score":29,"last_commit_at":30,"category_tags":31,"status":22},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,3,"2026-04-04T04:44:48",[17,13,20,19,18],{"id":33,"name":34,"github_repo":35,"description_zh":36,"stars":37,"difficulty_score":29,"last_commit_at":38,"category_tags":39,"status":22},519,"PaddleOCR","PaddlePaddle\u002FPaddleOCR","PaddleOCR 是一款基于百度飞桨框架开发的高性能开源光学字符识别工具包。它的核心能力是将图片、PDF 等文档中的文字提取出来，转换成计算机可读取的结构化数据，让机器真正“看懂”图文内容。\n\n面对海量纸质或电子文档，PaddleOCR 解决了人工录入效率低、数字化成本高的问题。尤其在人工智能领域，它扮演着连接图像与大型语言模型（LLM）的桥梁角色，能将视觉信息直接转化为文本输入，助力智能问答、文档分析等应用场景落地。\n\nPaddleOCR 适合开发者、算法研究人员以及有文档自动化需求的普通用户。其技术优势十分明显：不仅支持全球 100 多种语言的识别，还能在 Windows、Linux、macOS 等多个系统上运行，并灵活适配 CPU、GPU、NPU 等各类硬件。作为一个轻量级且社区活跃的开源项目，PaddleOCR 既能满足快速集成的需求，也能支撑前沿的视觉语言研究，是处理文字识别任务的理想选择。",74939,"2026-04-05T23:16:38",[19,13,20,18],{"id":41,"name":42,"github_repo":43,"description_zh":44,"stars":45,"difficulty_score":46,"last_commit_at":47,"category_tags":48,"status":22},3215,"awesome-machine-learning","josephmisiti\u002Fawesome-machine-learning","awesome-machine-learning 是一份精心整理的机器学习资源清单，汇集了全球优秀的机器学习框架、库和软件工具。面对机器学习领域技术迭代快、资源分散且难以甄选的痛点，这份清单按编程语言（如 Python、C++、Go 等）和应用场景（如计算机视觉、自然语言处理、深度学习等）进行了系统化分类，帮助使用者快速定位高质量项目。\n\n它特别适合开发者、数据科学家及研究人员使用。无论是初学者寻找入门库，还是资深工程师对比不同语言的技术选型，都能从中获得极具价值的参考。此外，清单还延伸提供了免费书籍、在线课程、行业会议、技术博客及线下聚会等丰富资源，构建了从学习到实践的全链路支持体系。\n\n其独特亮点在于严格的维护标准：明确标记已停止维护或长期未更新的项目，确保推荐内容的时效性与可靠性。作为机器学习领域的“导航图”，awesome-machine-learning 以开源协作的方式持续更新，旨在降低技术探索门槛，让每一位从业者都能高效地站在巨人的肩膀上创新。",72149,1,"2026-04-03T21:50:24",[20,18],{"id":50,"name":51,"github_repo":52,"description_zh":53,"stars":54,"difficulty_score":46,"last_commit_at":55,"category_tags":56,"status":22},2234,"scikit-learn","scikit-learn\u002Fscikit-learn","scikit-learn 是一个基于 Python 构建的开源机器学习库，依托于 SciPy、NumPy 等科学计算生态，旨在让机器学习变得简单高效。它提供了一套统一且简洁的接口，涵盖了从数据预处理、特征工程到模型训练、评估及选择的全流程工具，内置了包括线性回归、支持向量机、随机森林、聚类等在内的丰富经典算法。\n\n对于希望快速验证想法或构建原型的数据科学家、研究人员以及 Python 开发者而言，scikit-learn 是不可或缺的基础设施。它有效解决了机器学习入门门槛高、算法实现复杂以及不同模型间调用方式不统一的痛点，让用户无需重复造轮子，只需几行代码即可调用成熟的算法解决分类、回归、聚类等实际问题。\n\n其核心技术亮点在于高度一致的 API 设计风格，所有估算器（Estimator）均遵循相同的调用逻辑，极大地降低了学习成本并提升了代码的可读性与可维护性。此外，它还提供了强大的模型选择与评估工具，如交叉验证和网格搜索，帮助用户系统地优化模型性能。作为一个由全球志愿者共同维护的成熟项目，scikit-learn 以其稳定性、详尽的文档和活跃的社区支持，成为连接理论学习与工业级应用的最",65628,"2026-04-05T10:10:46",[20,18,14],{"id":58,"name":59,"github_repo":60,"description_zh":61,"stars":62,"difficulty_score":10,"last_commit_at":63,"category_tags":64,"status":22},3364,"keras","keras-team\u002Fkeras","Keras 是一个专为人类设计的深度学习框架，旨在让构建和训练神经网络变得简单直观。它解决了开发者在不同深度学习后端之间切换困难、模型开发效率低以及难以兼顾调试便捷性与运行性能的痛点。\n\n无论是刚入门的学生、专注算法的研究人员，还是需要快速落地产品的工程师，都能通过 Keras 轻松上手。它支持计算机视觉、自然语言处理、音频分析及时间序列预测等多种任务。\n\nKeras 3 的核心亮点在于其独特的“多后端”架构。用户只需编写一套代码，即可灵活选择 TensorFlow、JAX、PyTorch 或 OpenVINO 作为底层运行引擎。这一特性不仅保留了 Keras 一贯的高层易用性，还允许开发者根据需求自由选择：利用 JAX 或 PyTorch 的即时执行模式进行高效调试，或切换至速度最快的后端以获得最高 350% 的性能提升。此外，Keras 具备强大的扩展能力，能无缝从本地笔记本电脑扩展至大规模 GPU 或 TPU 集群，是连接原型开发与生产部署的理想桥梁。",63927,"2026-04-04T15:24:37",[20,14,18],{"id":66,"github_repo":67,"name":68,"description_en":69,"description_zh":70,"ai_summary_zh":70,"readme_en":71,"readme_zh":72,"quickstart_zh":73,"use_case_zh":74,"hero_image_url":75,"owner_login":76,"owner_name":77,"owner_avatar_url":78,"owner_bio":79,"owner_company":80,"owner_location":81,"owner_email":80,"owner_twitter":80,"owner_website":82,"owner_url":83,"languages":84,"stars":102,"forks":103,"last_commit_at":104,"license":105,"difficulty_score":29,"env_os":106,"env_gpu":107,"env_ram":108,"env_deps":109,"category_tags":116,"github_topics":80,"view_count":117,"oss_zip_url":80,"oss_zip_packed_at":80,"status":22,"created_at":118,"updated_at":119,"faqs":120,"releases":136},102,"ageron\u002Fhandson-ml2","handson-ml2","⛔️ DEPRECATED – See https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml3 or handson-mlp instead.","handson-ml2 是经典机器学习书籍《Hands-on Machine Learning with Scikit-Learn, Keras and TensorFlow》第二版的配套代码仓库。需要特别注意，官方已标记 handson-ml2 为弃用（DEPRECATED），内容基于 2019 年的技术栈，建议新用户优先查看第三版（handson-ml3）或 PyTorch 版本（handson-mlp）。\n\nhandson-ml2 解决了学习者在阅读书籍时缺乏实践代码的问题，提供了完整的 Jupyter Notebook 示例和习题解答，帮助用户通过动手实践掌握机器学习基础。适合正在研读该书第二版的初学者、Python 开发者以及希望回顾旧版技术实现的机器学习爱好者。\n\n仓库支持直接在 Colab、Kaggle 等云端平台运行，无需本地配置环境，涵盖了 Scikit-Learn、Keras 和 TensorFlow 的核心用法。尽管已不再维护，但对于理解机器学习演进历史或特定旧版本环境复现，handson-ml2 仍具有一定的参考价值。","Machine Learning Notebooks\n==========================\n\n# ⚠ THIS EDITION IS NOW OUTDATED. THE \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml3\">THIRD EDITION OF MY BOOK\u003C\u002Fa> IS NOW AVAILABLE, AS WELL A \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-mlp\">PYTORCH VERSION\u003C\u002Fa> AND \u003Ca href=\"https:\u002F\u002Fhoml.info\u002F\">MANY TRANSLATIONS\u003C\u002Fa>.\n\nThis project is for the second edition, which is now outdated (it came out in 2019).\n\n\u003Cdetails>\n\nThis project aims at teaching you the fundamentals of Machine Learning in\npython. It contains the example code and solutions to the exercises in the second edition of my O'Reilly book [Hands-on Machine Learning with Scikit-Learn, Keras and TensorFlow](https:\u002F\u002Fwww.oreilly.com\u002Flibrary\u002Fview\u002Fhands-on-machine-learning\u002F9781492032632\u002F):\n\n\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml2_readme_799345edebeb.jpg\" title=\"book\" width=\"150\" \u002F>\n\n**Note**: If you are looking for the first edition notebooks, check out [ageron\u002Fhandson-ml](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml). For the third edition, check out [ageron\u002Fhandson-ml3](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml3).\n\n## Quick Start\n\n### Want to play with these notebooks online without having to install anything?\nUse any of the following services (I recommended Colab or Kaggle, since they offer free GPUs and TPUs).\n\n**WARNING**: _Please be aware that these services provide temporary environments: anything you do will be deleted after a while, so make sure you download any data you care about._\n\n* \u003Ca href=\"https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002F\" target=\"_parent\">\u003Cimg src=\"https:\u002F\u002Fcolab.research.google.com\u002Fassets\u002Fcolab-badge.svg\" alt=\"Open In Colab\"\u002F>\u003C\u002Fa>\n\n* \u003Ca href=\"https:\u002F\u002Fhoml.info\u002Fkaggle\u002F\">\u003Cimg src=\"https:\u002F\u002Fkaggle.com\u002Fstatic\u002Fimages\u002Fopen-in-kaggle.svg\" alt=\"Open in Kaggle\" \u002F>\u003C\u002Fa>\n\n* \u003Ca href=\"https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml2\u002FHEAD?filepath=%2Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Fmybinder.org\u002Fbadge_logo.svg\" alt=\"Launch binder\" \u002F>\u003C\u002Fa>\n\n* \u003Ca href=\"https:\u002F\u002Fhoml.info\u002Fdeepnote\u002F\">\u003Cimg src=\"https:\u002F\u002Fdeepnote.com\u002Fbuttons\u002Flaunch-in-deepnote-small.svg\" alt=\"Launch in Deepnote\" \u002F>\u003C\u002Fa>\n\n### Just want to quickly look at some notebooks, without executing any code?\n\n* \u003Ca href=\"https:\u002F\u002Fnbviewer.jupyter.org\u002Fgithub\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fjupyter\u002Fdesign\u002Fmaster\u002Flogos\u002FBadges\u002Fnbviewer_badge.svg\" alt=\"Render nbviewer\" \u002F>\u003C\u002Fa>\n\n* [github.com's notebook viewer](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002Findex.ipynb) also works but it's not ideal: it's slower, the math equations are not always displayed correctly, and large notebooks often fail to open.\n\n### Want to run this project using a Docker image?\nRead the [Docker instructions](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Ftree\u002Fmaster\u002Fdocker).\n\n### Want to install this project on your own machine?\n\nStart by installing [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fdistribution\u002F) (or [Miniconda](https:\u002F\u002Fdocs.conda.io\u002Fen\u002Flatest\u002Fminiconda.html)), [git](https:\u002F\u002Fgit-scm.com\u002Fdownloads), and if you have a TensorFlow-compatible GPU, install the [GPU driver](https:\u002F\u002Fwww.nvidia.com\u002FDownload\u002Findex.aspx), as well as the appropriate version of CUDA and cuDNN (see TensorFlow's documentation for more details).\n\nNext, clone this project by opening a terminal and typing the following commands (do not type the first `$` signs on each line, they just indicate that these are terminal commands):\n\n    $ git clone https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2.git\n    $ cd handson-ml2\n\nNext, run the following commands:\n\n    $ conda env create -f environment.yml\n    $ conda activate tf2\n    $ python -m ipykernel install --user --name=python3\n\nFinally, start Jupyter:\n\n    $ jupyter notebook\n\nIf you need further instructions, read the [detailed installation instructions](INSTALL.md).\n\n# FAQ\n\n**Which Python version should I use?**\n\nI recommend Python 3.8. If you follow the installation instructions above, that's the version you will get. Most code will work with other versions of Python 3, but some libraries do not support Python 3.9 or 3.10 yet, which is why I recommend Python 3.8.\n\n**I'm getting an error when I call `load_housing_data()`**\n\nMake sure you call `fetch_housing_data()` *before* you call `load_housing_data()`. If you're getting an HTTP error, make sure you're running the exact same code as in the notebook (copy\u002Fpaste it if needed). If the problem persists, please check your network configuration.\n\n**I'm getting an SSL error on MacOSX**\n\nYou probably need to install the SSL certificates (see this [StackOverflow question](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F27835619\u002Furllib-and-ssl-certificate-verify-failed-error)). If you downloaded Python from the official website, then run `\u002FApplications\u002FPython\\ 3.8\u002FInstall\\ Certificates.command` in a terminal (change `3.8` to whatever version you installed). If you installed Python using MacPorts, run `sudo port install curl-ca-bundle` in a terminal.\n\n**I've installed this project locally. How do I update it to the latest version?**\n\nSee [INSTALL.md](INSTALL.md)\n\n**How do I update my Python libraries to the latest versions, when using Anaconda?**\n\nSee [INSTALL.md](INSTALL.md)\n\n## Contributors\nI would like to thank everyone [who contributed to this project](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fgraphs\u002Fcontributors), either by providing useful feedback, filing issues or submitting Pull Requests. Special thanks go to Haesun Park and Ian Beauregard who reviewed every notebook and submitted many PRs, including help on some of the exercise solutions. Thanks as well to Steven Bunkley and Ziembla who created the `docker` directory, and to github user SuperYorio who helped on some exercise solutions.\n\n\u003C\u002Fdetails>\n","机器学习（Machine Learning）笔记\n==========================\n\n# ⚠ 本版本现已过时。我的 \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml3\">第三版书籍\u003C\u002Fa> 现已出版，还有 \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-mlp\">PYTORCH 版本\u003C\u002Fa> 和 \u003Ca href=\"https:\u002F\u002Fhoml.info\u002F\">多种翻译版本\u003C\u002Fa>。\n\n本项目对应第二版，该版本现已过时（出版于 2019 年）。\n\n\u003Cdetails>\n\n本项目旨在教你使用 Python（编程语言）学习机器学习（Machine Learning）的基础知识。它包含了我 O'Reilly 书籍 [Hands-on Machine Learning with Scikit-Learn, Keras and TensorFlow](https:\u002F\u002Fwww.oreilly.com\u002Flibrary\u002Fview\u002Fhands-on-machine-learning\u002F9781492032632\u002F) 第二版中的示例代码和练习解答：\n\n\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml2_readme_799345edebeb.jpg\" title=\"book\" width=\"150\" \u002F>\n\n**注意**：如果你在寻找第一版的笔记，请查看 [ageron\u002Fhandson-ml](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml)。对于第三版，请查看 [ageron\u002Fhandson-ml3](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml3)。\n\n## 快速开始\n\n### 想在线使用这些笔记而无需安装任何东西？\n使用以下任何服务（我推荐 Colab 或 Kaggle，因为它们提供免费的 GPU（图形处理器）和 TPU（张量处理单元））。\n\n**警告**：_请注意，这些服务提供的是临时环境：你所做的任何操作都会在一段时间后会被删除，所以请确保下载任何你关心的数据。_\n\n* \u003Ca href=\"https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002F\" target=\"_parent\">\u003Cimg src=\"https:\u002F\u002Fcolab.research.google.com\u002Fassets\u002Fcolab-badge.svg\" alt=\"Open In Colab\"\u002F>\u003C\u002Fa>\n\n* \u003Ca href=\"https:\u002F\u002Fhoml.info\u002Fkaggle\u002F\">\u003Cimg src=\"https:\u002F\u002Fkaggle.com\u002Fstatic\u002Fimages\u002Fopen-in-kaggle.svg\" alt=\"Open in Kaggle\" \u002F>\u003C\u002Fa>\n\n* \u003Ca href=\"https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml2\u002FHEAD?filepath=%2Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Fmybinder.org\u002Fbadge_logo.svg\" alt=\"Launch binder\" \u002F>\u003C\u002Fa>\n\n* \u003Ca href=\"https:\u002F\u002Fhoml.info\u002Fdeepnote\u002F\">\u003Cimg src=\"https:\u002F\u002Fdeepnote.com\u002Fbuttons\u002Flaunch-in-deepnote-small.svg\" alt=\"Launch in Deepnote\" \u002F>\u003C\u002Fa>\n\n### 只想快速查看某些笔记，而不执行任何代码？\n\n* \u003Ca href=\"https:\u002F\u002Fnbviewer.jupyter.org\u002Fgithub\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fjupyter\u002Fdesign\u002Fmaster\u002Flogos\u002FBadges\u002Fnbviewer_badge.svg\" alt=\"Render nbviewer\" \u002F>\u003C\u002Fa>\n\n* [github.com 的笔记查看器](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002Findex.ipynb) 也可以工作，但并不理想：速度较慢，数学公式并不总能正确显示，而且大型笔记经常无法打开。\n\n### 想使用 Docker（容器化平台）镜像运行此项目？\n阅读 [Docker 说明](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Ftree\u002Fmaster\u002Fdocker)。\n\n### 想在你自己的机器上安装此项目？\n\n首先安装 [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fdistribution\u002F)（或 [Miniconda](https:\u002F\u002Fdocs.conda.io\u002Fen\u002Flatest\u002Fminiconda.html)）、[git](https:\u002F\u002Fgit-scm.com\u002Fdownloads)，如果你拥有兼容 TensorFlow 的 GPU（图形处理器），请安装 [GPU 驱动程序](https:\u002F\u002Fwww.nvidia.com\u002FDownload\u002Findex.aspx)，以及适当版本的 CUDA 和 cuDNN（详见 TensorFlow 文档获取更多细节）。\n\n接下来，打开终端并输入以下命令来克隆本项目（不要输入每行开头的 `$` 符号，它们仅表示这些是终端命令）：\n\n    $ git clone https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2.git\n    $ cd handson-ml2\n\n接下来，运行以下命令：\n\n    $ conda env create -f environment.yml\n    $ conda activate tf2\n    $ python -m ipykernel install --user --name=python3\n\n最后，启动 Jupyter：\n\n    $ jupyter notebook\n\n如果需要更多说明，请阅读 [详细安装说明](INSTALL.md)。\n\n# 常见问题解答 (FAQ)\n\n**我应该使用哪个 Python 版本？**\n\n我推荐 Python 3.8。如果你遵循上面的安装说明，你将获得该版本。大多数代码适用于其他 Python 3 版本，但某些库尚不支持 Python 3.9 或 3.10，这就是我推荐 Python 3.8 的原因。\n\n**当我调用 `load_housing_data()` 时遇到错误**\n\n确保在调用 `load_housing_data()` *之前* 调用 `fetch_housing_data()`。如果遇到 HTTP（超文本传输协议）错误，请确保你运行的代码与笔记中的完全一致（如有需要请复制\u002F粘贴）。如果问题仍然存在，请检查你的网络配置。\n\n**我在 MacOSX 上遇到 SSL 错误**\n\n你可能需要安装 SSL（安全套接字层）证书（见这个 [StackOverflow 问题](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F27835619\u002Furllib-and-ssl-certificate-verify-failed-error)）。如果你从官方网站下载了 Python，则在终端中运行 `\u002FApplications\u002FPython\\ 3.8\u002FInstall\\ Certificates.command`（将 `3.8` 更改为你安装的版本）。如果你使用 MacPorts 安装了 Python，则在终端中运行 `sudo port install curl-ca-bundle`。\n\n**我已在本地安装了此项目。如何将其更新到最新版本？**\n\n见 [INSTALL.md](INSTALL.md)\n\n**使用 Anaconda 时，如何将 Python 库更新到最新版本？**\n\n见 [INSTALL.md](INSTALL.md)\n\n## 贡献者\n我要感谢所有 [为本项目做出贡献的人](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fgraphs\u002Fcontributors)，无论是提供有用反馈、提交问题还是提交 Pull Request（拉取请求）。特别感谢 Haesun Park 和 Ian Beauregard，他们审查了每个笔记并提交了许多 PR（拉取请求），包括对一些练习解答的帮助。同样感谢 Steven Bunkley 和 Ziembla 创建了 `docker` 目录，以及 github 用户 SuperYorio 在一些练习解答上提供的帮助。\n\n\u003C\u002Fdetails>","# handson-ml2 快速上手指南\n\n> ⚠️ **版本提示**：本项目对应书籍《Hands-on Machine Learning》**第二版**（2019 年），现已过时。如需最新内容，请参考 [第三版 (handson-ml3)](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml3) 或 [PyTorch 版本](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-mlp)。\n\n## 环境准备\n\n- **操作系统**：Windows \u002F macOS \u002F Linux\n- **核心依赖**：\n  - [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fdistribution\u002F) 或 [Miniconda](https:\u002F\u002Fdocs.conda.io\u002Fen\u002Flatest\u002Fminiconda.html)\n  - [git](https:\u002F\u002Fgit-scm.com\u002Fdownloads)\n- **Python 版本**：推荐 **Python 3.8**（部分库暂不支持 3.9+）\n- **可选硬件**：如需 GPU 加速，请安装 NVIDIA 驱动及对应版本的 CUDA 和 cuDNN\n\n## 安装步骤\n\n在终端中依次执行以下命令（请勿输入行首的 `$` 符号）：\n\n1. **克隆项目**\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2.git\n   cd handson-ml2\n   ```\n\n2. **创建conda 环境**\n   ```bash\n   conda env create -f environment.yml\n   ```\n\n3. **激活环境并注册内核**\n   ```bash\n   conda activate tf2\n   python -m ipykernel install --user --name=python3\n   ```\n\n4. **启动 Jupyter Notebook**\n   ```bash\n   jupyter notebook\n   ```\n\n> 如需详细安装说明或更新项目，请参考 [INSTALL.md](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002FINSTALL.md)。\n\n## 基本使用\n\n### 1. 本地运行\n启动 Jupyter 后，在浏览器中打开 `index.ipynb`，即可开始学习各个章节的 Notebook 示例代码。\n\n### 2. 在线运行（免安装）\n无需本地配置环境，可直接使用以下云平台运行 Notebook（注意：环境为临时性，请及时下载数据）：\n\n- **Google Colab** (推荐，提供免费 GPU\u002FTPU): [Open In Colab](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002F)\n- **Kaggle Kernels**: [Open in Kaggle](https:\u002F\u002Fhoml.info\u002Fkaggle\u002F)\n- **Binder**: [Launch Binder](https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml2\u002FHEAD?filepath=%2Findex.ipynb)\n- **Deepnote**: [Launch in Deepnote](https:\u002F\u002Fhoml.info\u002Fdeepnote\u002F)\n\n### 3. 仅查看代码\n如果不执行代码，仅想浏览内容，可使用 [nbviewer](https:\u002F\u002Fnbviewer.jupyter.org\u002Fgithub\u002Fageron\u002Fhandson-ml2\u002Fblob\u002Fmaster\u002Findex.ipynb) 或直接查看 GitHub 文件。","某企业内部培训讲师正带领新人团队基于经典教材《机器学习实战》第二版系统构建算法基础。\n\n### 没有 handson-ml2 时\n- 学员手动复现书中代码耗时费力，细微拼写错误常导致程序崩溃，打击学习信心。\n- 本地配置 TensorFlow 2 及相关库环境复杂，版本不匹配问题频发，排查困难。\n- 缺乏配套的课后习题解答，学员难以验证自己对知识点的掌握程度，学习闭环缺失。\n- 大量时间浪费在环境调试上，严重拖慢了整体教学进度和知识吸收效率。\n\n### 使用 handson-ml2 后\n- 直接获取与教材章节严格对应的完整 Notebook 代码，确保每一行代码运行无误。\n- 利用项目提供的 environment.yml 文件，一键搭建与教材一致的依赖环境，消除兼容性问题。\n- 参考官方提供的习题解决方案，学员能及时对照修正理解偏差，巩固核心概念。\n- 环境准备时间从数天缩短至几小时，团队能更专注于算法原理推导与业务场景结合。\n\nhandson-ml2 为第二版教材学习者提供了开箱即用的完整实践路径，显著提升了机器学习入门效率。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml2_5ee28dd8.png","ageron","Aurélien Geron","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Fageron_57c7255d.jpg","Author of the book Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow. Former PM of YouTube video classification and founder & CTO of Wifirst.",null,"Auckland","https:\u002F\u002Ftwitter.com\u002Faureliengeron","https:\u002F\u002Fgithub.com\u002Fageron",[85,89,93,96,99],{"name":86,"color":87,"percentage":88},"Jupyter Notebook","#DA5B0B",100,{"name":90,"color":91,"percentage":92},"Python","#3572A5",0,{"name":94,"color":95,"percentage":92},"Dockerfile","#384d54",{"name":97,"color":98,"percentage":92},"Shell","#89e051",{"name":100,"color":101,"percentage":92},"Makefile","#427819",29926,13234,"2026-04-05T12:40:26","Apache-2.0","Linux, macOS, Windows","可选，需 NVIDIA GPU 及对应 CUDA\u002FcuDNN 版本","未说明",{"notes":110,"python":111,"dependencies":112},"该项目对应书籍第二版（2019 年），已过时；推荐使用 Anaconda 或 Miniconda 管理环境；macOS 用户可能需手动安装 SSL 证书；支持 Colab、Kaggle 等在线运行或 Docker 部署；加载数据前需先执行 fetch_housing_data()","3.8",[113,59,51,114,115],"tensorflow","jupyter","ipykernel",[18],75,"2026-03-27T02:49:30.150509","2026-04-06T09:46:08.300683",[121,126,131],{"id":122,"question_zh":123,"answer_zh":124,"source_url":125},55,"第 2 章中计算泛化误差（RMSE）置信区间的方法基于什么假设？","该方法要求测试集足够大。实践中发现约 100 个实例通常足够，但这取决于具体任务。数据分布越偏离正态分布，所需的测试集越大。如果样本量过低，置信区间会变宽。对于非正态数据的置信区间细节，可参考相关统计学资料（如 MIT 概率与统计阅读材料）。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fissues\u002F9",{"id":127,"question_zh":128,"answer_zh":129,"source_url":130},56,"为什么绘制学习率与误差的关系图时，曲线比书中示例更平滑且出现 NaN？","这是 TensorFlow 2.2.0 的变更导致的。`tf.keras` 现在返回的是 epoch 开始以来的平均损失（mean loss），而不是批次损失（batch loss），因此图形更平滑且向右\u002F上偏移。当学习率过高导致损失爆炸时，需要几个批次才能在图中显现。建议根据此情况选择更低的学习率，不必强求与书中图形完全一致。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fissues\u002F188",{"id":132,"question_zh":133,"answer_zh":134,"source_url":135},57,"为什么 Chapter 10 练习中测试集准确率只有约 10% 而不是预期的 98%？","这通常是由于环境配置或 TensorFlow 版本差异引起的。建议通过 `conda-forge` 重新安装 TensorFlow 和 Keras，命令为：`conda install -c conda-forge tensorflow keras`。同时建议在主目录创建 `.condarc` 文件，设置 `channel_priority: strict` 并优先使用 `conda-forge` 通道，以确保版本兼容性并解决此类准确率异常问题。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml2\u002Fissues\u002F483",[]]