[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-ageron--handson-ml":3,"tool-ageron--handson-ml":64},[4,17,27,35,43,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},3808,"stable-diffusion-webui","AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,3,"2026-04-05T11:01:52",[13,14,15],"开发框架","图像","Agent","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":23,"last_commit_at":24,"category_tags":25,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",140436,2,"2026-04-05T23:32:43",[13,15,26],"语言模型",{"id":28,"name":29,"github_repo":30,"description_zh":31,"stars":32,"difficulty_score":23,"last_commit_at":33,"category_tags":34,"status":16},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",107662,"2026-04-03T11:11:01",[13,14,15],{"id":36,"name":37,"github_repo":38,"description_zh":39,"stars":40,"difficulty_score":23,"last_commit_at":41,"category_tags":42,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,26],{"id":44,"name":45,"github_repo":46,"description_zh":47,"stars":48,"difficulty_score":23,"last_commit_at":49,"category_tags":50,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[14,51,52,53,15,54,26,13,55],"数据工具","视频","插件","其他","音频",{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":10,"last_commit_at":62,"category_tags":63,"status":16},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,"2026-04-04T04:44:48",[15,14,13,26,54],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":75,"owner_name":76,"owner_avatar_url":77,"owner_bio":78,"owner_company":79,"owner_location":80,"owner_email":79,"owner_twitter":79,"owner_website":81,"owner_url":82,"languages":83,"stars":102,"forks":103,"last_commit_at":104,"license":105,"difficulty_score":10,"env_os":106,"env_gpu":107,"env_ram":107,"env_deps":108,"category_tags":118,"github_topics":119,"view_count":128,"oss_zip_url":79,"oss_zip_packed_at":79,"status":16,"created_at":129,"updated_at":130,"faqs":131,"releases":161},1158,"ageron\u002Fhandson-ml","handson-ml","⛔️ DEPRECATED – See https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml3 or handson-mlp instead.","handson-ml 是一个用于学习机器学习的开源项目，包含大量示例代码和练习解答。它最初是配合书籍《Hands-on Machine Learning with Scikit-Learn and TensorFlow》使用的，帮助用户通过实践掌握机器学习的基础知识。虽然当前版本已过时，但其内容仍具有参考价值。\n\n该项目解决了初学者在学习机器学习时缺乏实践资源的问题，提供了可直接运行的笔记本文件，方便用户动手实验。适合开发者和研究人员使用，尤其适合希望通过代码实践加深理解的人群。\n\n工具支持多种在线运行方式，如 Google Colab、Binder 和 Deepnote，无需本地安装即可快速上手。此外，还提供详细的安装指南，便于本地部署。对于想要系统学习机器学习并进行实际操作的用户来说，是一个实用的学习资源。","Machine Learning Notebooks\n==========================\n\n# ⚠ 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 first edition, which is now outdated (it came out in 2017).\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 my O'Reilly book [Hands-on Machine Learning with Scikit-Learn and TensorFlow](https:\u002F\u002Flearning.oreilly.com\u002Flibrary\u002Fview\u002Fhands-on-machine-learning\u002F9781491962282\u002F):\n\n[![book](http:\u002F\u002Fakamaicovers.oreilly.com\u002Fimages\u002F9781491962282\u002Fcat.gif)](https:\u002F\u002Flearning.oreilly.com\u002Flibrary\u002Fview\u002Fhands-on-machine-learning\u002F9781491962282\u002F)\n\n\n## Quick Start\n\n### Want to play with these notebooks online without having to install anything?\nUse any of the following services.\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* **Recommended**: open this repository in [Colaboratory](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002F):\n\u003Ca href=\"https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002F\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml_readme_53bfc49bf4db.png\" width=\"90\" \u002F>\u003C\u002Fa>\n\n* Or open it in [Binder](https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml\u002Fmaster):\n\u003Ca href=\"https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml\u002Fmaster\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml_readme_596af5d6338e.png\" width=\"90\" \u002F>\u003C\u002Fa>\n\n  * _Note_: Most of the time, Binder starts up quickly and works great, but when handson-ml is updated, Binder creates a new environment from scratch, and this can take quite some time.\n\n* Or open it in [Deepnote](https:\u002F\u002Fbeta.deepnote.com\u002Flaunch?template=data-science&url=https%3A\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb):\n\u003Ca href=\"https:\u002F\u002Fbeta.deepnote.com\u002Flaunch?template=data-science&url=https%3A\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml_readme_414836117f0a.png\" width=\"150\" \u002F>\u003C\u002Fa>\n\n### Just want to quickly look at some notebooks, without executing any code?\n\nBrowse this repository using [jupyter.org's notebook viewer](https:\u002F\u002Fnbviewer.jupyter.org\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb):\n\u003Ca href=\"https:\u002F\u002Fnbviewer.jupyter.org\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Fjupyter.org\u002Fassets\u002Flogos\u002Frectanglelogo-greytext-orangebody-greymoons.svg\" width=\"150\" \u002F>\u003C\u002Fa>\n\n_Note_: [github.com's notebook viewer](index.ipynb) also works but it is slower and the math equations are not always displayed correctly.\n\n### Want to run this project using a Docker image?\nRead the [Docker instructions](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\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-ml.git\n    $ cd handson-ml\n\nNext, run the following commands:\n\n    $ conda env create -f environment.yml\n    $ conda activate tf1\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.7. 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.8 or 3.9 yet, which is why I recommend Python 3.7.\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.7\u002FInstall\\ Certificates.command` in a terminal (change `3.7` 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-ml\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","机器学习笔记本\n==========================\n\n# ⚠ 我的书的第三版现已发布，同时还有 PyTorch 版本和多种语言译本。\n\n本项目对应的是第一版，目前已过时（出版于2017年）。\n\n\u003Cdetails>\n\n该项目旨在用 Python 教授机器学习的基础知识。它包含了我在 O'Reilly 出版的书籍《使用 Scikit-Learn 和 TensorFlow 的动手机器学习》中的示例代码及习题解答：\n\n[![book](http:\u002F\u002Fakamaicovers.oreilly.com\u002Fimages\u002F9781491962282\u002Fcat.gif)](https:\u002F\u002Flearning.oreilly.com\u002Flibrary\u002Fview\u002Fhands-on-machine-learning\u002F9781491962282\u002F)\n\n\n## 快速入门\n\n### 想在线体验这些笔记本，而无需安装任何东西吗？\n可以使用以下任意服务。\n\n**警告**：请注意，这些服务提供的都是临时环境：您所做的任何操作在一段时间后都会被删除，因此请务必下载您关心的数据。\n\n* **推荐**：在 [Colaboratory](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002F) 中打开此仓库：\n\u003Ca href=\"https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002F\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml_readme_53bfc49bf4db.png\" width=\"90\" \u002F>\u003C\u002Fa>\n\n* 或者在 [Binder](https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml\u002Fmaster) 中打开：\n\u003Ca href=\"https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml\u002Fmaster\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml_readme_596af5d6338e.png\" width=\"90\" \u002F>\u003C\u002Fa>\n\n  * _注_：大多数情况下，Binder 启动迅速且运行良好，但当 handson-ml 更新时，Binder 会从头开始构建新环境，这可能需要相当长的时间。\n\n* 或者在 [Deepnote](https:\u002F\u002Fbeta.deepnote.com\u002Flaunch?template=data-science&url=https%3A\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb) 中打开：\n\u003Ca href=\"https:\u002F\u002Fbeta.deepnote.com\u002Flaunch?template=data-science&url=https%3A\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml_readme_414836117f0a.png\" width=\"150\" \u002F>\u003C\u002Fa>\n\n### 只想快速浏览一些笔记本，而不执行任何代码吗？\n\n使用 [jupyter.org 的笔记本查看器](https:\u002F\u002Fnbviewer.jupyter.org\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb) 浏览此仓库：\n\u003Ca href=\"https:\u002F\u002Fnbviewer.jupyter.org\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb\">\u003Cimg src=\"https:\u002F\u002Fjupyter.org\u002Fassets\u002Flogos\u002Frectanglelogo-greytext-orangebody-greymoons.svg\" width=\"150\" \u002F>\u003C\u002Fa>\n\n_注_：[github.com 的笔记本查看器](index.ipynb) 也可以使用，但速度较慢，且数学公式有时无法正确显示。\n\n### 想使用 Docker 镜像运行该项目吗？\n请阅读 [Docker 指南](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\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-ml.git\n    $ cd handson-ml\n\n然后运行以下命令：\n\n    $ conda env create -f environment.yml\n    $ conda activate tf1\n    $ python -m ipykernel install --user --name=python3\n\n最后启动 Jupyter：\n\n    $ jupyter notebook\n\n如需更多说明，请参阅 [详细安装指南](INSTALL.md)。\n\n# 常见问题解答\n\n**我应该使用哪个 Python 版本？**\n\n推荐使用 Python 3.7。按照上述安装步骤操作，您将获得该版本。大多数代码也能在其他 Python 3 版本上运行，但部分库尚未支持 Python 3.8 或 3.9，因此我建议使用 Python 3.7。\n\n**调用 `load_housing_data()` 时出现错误**\n\n请确保先调用 `fetch_housing_data()`，再调用 `load_housing_data()`。如果遇到 HTTP 错误，请确认您运行的代码与笔记本中的完全一致（必要时可直接复制粘贴）。若问题仍然存在，请检查您的网络配置。\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.7\u002FInstall\\ Certificates.command`（将 `3.7` 替换为您安装的版本）。如果您使用 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我要感谢所有为该项目做出贡献的人（详见 [GitHub 贡献者图](https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fgraphs\u002Fcontributors)），无论是提供宝贵反馈、提交问题还是 Pull Request。特别感谢 Haesun Park 和 Ian Beauregard，他们审阅了每一个笔记本并提交了许多 PR，包括对部分习题解答的帮助。同时也感谢 Steven Bunkley 和 Ziembla 创建了 `docker` 目录，以及 GitHub 用户 SuperYorio 在部分习题解答上的协助。\n\u003C\u002Fdetails>","# handson-ml 快速上手指南\n\n## 环境准备\n\n### 系统要求\n- 操作系统：Windows \u002F macOS \u002F Linux\n- Python 版本：推荐使用 Python 3.7（其他 Python 3 版本可能兼容，但部分库可能不支持 Python 3.8 或 3.9）\n\n### 前置依赖\n- [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fdistribution\u002F) 或 [Miniconda](https:\u002F\u002Fdocs.conda.io\u002Fen\u002Flatest\u002Fminiconda.html)（推荐使用 Anaconda）\n- [Git](https:\u002F\u002Fgit-scm.com\u002Fdownloads)\n- 若使用 GPU 加速，需安装 NVIDIA 显卡驱动、CUDA 和 cuDNN（具体版本请参考 TensorFlow 官方文档）\n\n> 国内用户可考虑使用清华镜像源加速 Conda 安装：\n> ```bash\n> conda config --add channels https:\u002F\u002Fmirrors.tuna.tsinghua.edu.cn\u002Fanaconda\u002Fpkgs\u002Ffree\u002F\n> conda config --set show_channel_urls yes\n> ```\n\n---\n\n## 安装步骤\n\n1. 克隆项目到本地：\n\n    ```bash\n    $ git clone https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml.git\n    $ cd handson-ml\n    ```\n\n2. 创建 Conda 虚拟环境：\n\n    ```bash\n    $ conda env create -f environment.yml\n    ```\n\n3. 激活虚拟环境：\n\n    ```bash\n    $ conda activate tf1\n    ```\n\n4. 安装 Jupyter 内核：\n\n    ```bash\n    $ python -m ipykernel install --user --name=python3\n    ```\n\n---\n\n## 基本使用\n\n启动 Jupyter Notebook：\n\n```bash\n$ jupyter notebook\n```\n\n在浏览器中打开 Jupyter Notebook 页面，进入 `handson-ml` 目录，即可查看和运行各个示例笔记本。\n\n> 如果你不想安装本地环境，也可以直接通过以下在线服务运行：\n> - [Google Colab](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002F)\n> - [Binder](https:\u002F\u002Fmybinder.org\u002Fv2\u002Fgh\u002Fageron\u002Fhandson-ml\u002Fmaster)\n> - [Deepnote](https:\u002F\u002Fbeta.deepnote.com\u002Flaunch?template=data-science&url=https%3A\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fblob\u002Fmaster\u002Findex.ipynb)","一位数据科学初学者正在学习机器学习，计划通过实际项目掌握从数据预处理到模型训练的完整流程。他希望借助开源资源快速上手，但面对复杂的环境配置和零散的代码示例感到无从下手。\n\n### 没有 handson-ml 时  \n- 需要自行查找和整合多个教程，导致学习路径不清晰  \n- 环境配置复杂，容易因依赖版本不兼容而失败  \n- 缺乏系统化的练习材料，难以形成完整的知识体系  \n- 代码示例分散在不同地方，难以集中学习和复用  \n\n### 使用 handson-ml 后  \n- 提供结构化、分章节的笔记本，学习路径明确且易于跟随  \n- 内置环境配置文件，简化了依赖安装和环境搭建过程  \n- 包含完整的练习和解决方案，帮助巩固理论知识  \n- 所有代码集中在一个仓库中，便于查阅和实践  \n\nhandson-ml 为初学者提供了从理论到实践的一站式学习体验，显著降低了入门门槛。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fageron_handson-ml_25c2e06e.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",[84,88,92,96,99],{"name":85,"color":86,"percentage":87},"Jupyter Notebook","#DA5B0B",99.7,{"name":89,"color":90,"percentage":91},"Python","#3572A5",0.3,{"name":93,"color":94,"percentage":95},"Dockerfile","#384d54",0,{"name":97,"color":98,"percentage":95},"Shell","#89e051",{"name":100,"color":101,"percentage":95},"Makefile","#427819",25807,12837,"2026-04-04T08:53:24","Apache-2.0","Linux, macOS, Windows","未说明",{"notes":109,"python":110,"dependencies":111},"建议使用 Anaconda 管理环境，首次运行需下载约 5GB 模型文件。若使用 GPU 加速，需安装 NVIDIA 显卡驱动及对应的 CUDA 和 cuDNN 版本。","3.7",[112,113,114,115,116,117],"scikit-learn","tensorflow","pandas","numpy","matplotlib","jupyter",[13],[113,112,120,121,122,123,124,125,126,127],"machine-learning","python","deep-learning","neural-network","ml","distributed","jupyter-notebook","deprecated",6,"2026-03-27T02:49:30.150509","2026-04-06T09:46:11.260104",[132,137,142,147,152,156],{"id":133,"question_zh":134,"answer_zh":135,"source_url":136},5239,"如何解决 'prepare_country_stats' 未定义的错误？","请确保您已正确导入或定义了 'prepare_country_stats' 函数。该函数可能在书中示例代码中被省略，需要根据上下文手动实现或从其他来源获取。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fissues\u002F33",{"id":138,"question_zh":139,"answer_zh":140,"source_url":141},5240,"如何解决 'FileNotFoundError' 错误，找不到 housing.csv 文件？","请确认您是从项目根目录启动 Jupyter Notebook，并且确保 'datasets\u002Fhousing\u002Fhousing.csv' 文件存在于正确路径下。如果文件不存在，请重新下载或使用正确的路径。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fissues\u002F142",{"id":143,"question_zh":144,"answer_zh":145,"source_url":146},5241,"如何解决 'CategoricalEncoder' 无法导入的问题？","在较新版本的 scikit-learn 中，'CategoricalEncoder' 已被移除。您可以改用 'OneHotEncoder' 并结合 'ColumnTransformer' 实现相同功能。例如：`from sklearn.preprocessing import OneHotEncoder`。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fissues\u002F155",{"id":148,"question_zh":149,"answer_zh":150,"source_url":151},5242,"如何解决 MNIST 数据集无法加载的问题？","MNIST 数据集可能已被移出 scikit-learn 和 TensorFlow 的默认数据集中。您可以尝试从其他来源（如 Keras 或自定义下载）获取数据，或更新代码以适配新的数据加载方式。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fissues\u002F301",{"id":153,"question_zh":154,"answer_zh":155,"source_url":136},5243,"为什么线性回归模型无法正确预测平方值？","线性回归模型假设数据是线性的，而平方关系是非线性的。因此，线性回归无法准确拟合这种数据。建议尝试使用多项式特征或非线性模型（如决策树、神经网络）。",{"id":157,"question_zh":158,"answer_zh":159,"source_url":160},5244,"如何解决 Tensorflow 运行时错误？","请检查您的代码是否包含所有必要的依赖项和正确配置。例如，确保已正确安装 TensorFlow 并且代码中没有语法错误。此外，可以尝试逐步调试代码以定位问题所在。","https:\u002F\u002Fgithub.com\u002Fageron\u002Fhandson-ml\u002Fissues\u002F404",[]]