[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-aapatel09--handson-unsupervised-learning":3,"tool-aapatel09--handson-unsupervised-learning":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 真正成长为懂上",138956,2,"2026-04-05T11:33:21",[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":81,"owner_twitter":75,"owner_website":82,"owner_url":83,"languages":84,"stars":93,"forks":94,"last_commit_at":95,"license":81,"difficulty_score":10,"env_os":96,"env_gpu":97,"env_ram":98,"env_deps":99,"category_tags":107,"github_topics":108,"view_count":23,"oss_zip_url":81,"oss_zip_packed_at":81,"status":16,"created_at":117,"updated_at":118,"faqs":119,"releases":148},1396,"aapatel09\u002Fhandson-unsupervised-learning","handson-unsupervised-learning","Code for Hands-on Unsupervised Learning Using Python (O'Reilly Media)","handson-unsupervised-learning 是 O'Reilly 畅销书《Hands-on Unsupervised Learning Using Python》的官方配套代码库，旨在帮助开发者利用 Python 轻松掌握无监督学习技术。面对现实世界中大量未标注的数据，传统监督学习往往束手无策，而该资源包通过实战案例，解决了如何从杂乱数据中自动发现深层模式、检测异常行为以及进行用户分群等核心难题。\n\n它非常适合具备一定编程基础和机器学习经验的开发者、数据科学家及研究人员使用。只需熟悉 Python，用户即可借助提供的代码快速构建生产级的机器学习解决方案。其独特亮点在于同时支持 scikit-learn 和 TensorFlow 两大主流框架，并持续更新以兼容 TensorFlow 2.x。内容涵盖降维算法、信用卡欺诈检测、自动特征工程、半监督学习、电影推荐系统构建，以及利用生成对抗网络（GAN）合成图像等前沿应用。此外，项目还提供了详细的本地环境配置指南和 Google Colab 云端运行教程，让用户能灵活选择开发环境，高效地将理论转化为解决实际业务问题的能力。","# Hands-on Unsupervised Learning Using Python\n\nThis repo contains the code for the O'Reilly Media, Inc. book \"Hands-on Unsupervised Learning Using Python: How to Build Applied Machine Learning Solutions from Unlabeled Data\" by Ankur A. Patel.\n\nOfficial Book Website: https:\u002F\u002Fwww.unsupervisedlearningbook.com\u002Fthebook\n\nAvailable on Amazon: https:\u002F\u002Fwww.amazon.com\u002FHands-Unsupervised-Learning-Using-Python\u002Fdp\u002F1492035645\n\nAvailable on O'Reilly Safari: https:\u002F\u002Fwww.oreilly.com\u002Flibrary\u002Fview\u002Fhands-on-unsupervised-learning\u002F9781492035633\u002F\n\nMore on the Author: https:\u002F\u002Fwww.ankurapatel.io\n\n## Release Updates\n\nMay 2021: Added support for TensorFlow 2.x, Fashion MNIST examples, and Tensorboard for Dimensionality Reduction.\n\n## Book Description\n\nMany industry experts consider unsupervised learning the next frontier in artificial intelligence, one that may hold the key to the holy grail in AI research, the so-called general artificial intelligence. Since the majority of the world's data is unlabeled, conventional supervised learning cannot be applied; this is where unsupervised learning comes in. Unsupervised learning can be applied to unlabeled datasets to discover meaningful patterns buried deep in the data, patterns that may be near impossible for humans to uncover.\n\nAuthor Ankur Patel provides practical knowledge on how to apply unsupervised learning using two simple, production-ready Python frameworks - scikit-learn and TensorFlow. With the hands-on examples and code provided, you will identify difficult-to-find patterns in data and gain deeper business insight, detect anomalies, perform automatic feature engineering and selection, and generate synthetic datasets. All you need is programming and some machine learning experience to get started.\n\n* Compare the strengths and weaknesses of the different machine learning approaches: supervised, unsupervised, and reinforcement learning\n* Set up and manage a machine learning project end-to-end - everything from data acquisition to building a model and implementing a solution in production\n* Use dimensionality reduction algorithms to uncover the most relevant information in data and build an anomaly detection system to catch credit card fraud\n* Apply clustering algorithms to segment users - such as loan borrowers - into distinct and homogeneous groups\n* Use autoencoders to perform automatic feature engineering and selection\n* Combine supervised and unsupervised learning algorithms to develop semi-supervised solutions\n* Build movie recommender systems using restricted Boltzmann machines\n* Generate synthetic images using deep belief networks and generative adversarial networks\n* Perform clustering on time series data such as electrocardiograms\n* Explore the successes of unsupervised learning to date and its promising future\n\n## Google Colaboratory\n\nIf you wish use Google Colab (instead of your local machine), please follow [these instructions to run the code on Google Colab](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Faapatel09\u002Fhandson-unsupervised-learning\u002Fblob\u002Fmaster\u002Fgoogle_colab_setup.ipynb).\n\n## Setup Main Conda Environment\n\nIf you wish to run this repo on your local machine, please follow these instructions below.\n\n1) If you are on macOS, install Xcode Command Line Tools using ```xcode-select --install``` in Terminal.\n\n2) Install the [Miniforge distribution of Python 3.8](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge#download) based on your OS. If you are on Windows, you can choose the [Anaconda distribution of Python 3.8](https:\u002F\u002Fwww.anaconda.com\u002Fproducts\u002Findividual) instead of the Miniforge distribution, if you wish to.\n\n3) For NVIDIA GPU support, install [CUDA 11.0](https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-11.0-download-archive). This is only available on select NVIDIA GPUs.\n\n4) Set up new Anaconda environment and follow these instructions based on your OS.\n\nFor **Windows**:\n\n    ```\n\tconda env create -f environment_windows.yml\n\tconda activate unsupervisedLearning\n\tpip install -r requirements_windows.txt\n    ```\n\nFor **macOS**:\n\n    ```\n    conda env create -f environment_mac.yml\n\tconda activate unsupervisedLearning\n\tpip install -r requirements_mac.txt\n    ```\n\n5) Download data from Google Drive (files are too large to store and access on Github).\n\n    ```\n\thttps:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F1TQVOPUU4tVOYZvdpbxUo6uOCh0jvWNhv?usp=sharing\n    ```\n\n6) Run the notebooks using Jupyter.\n\n    ```\n\tjupyter notebook\n    ```\n\n7) If you encounter any issues or errors with the setup or the code or anything else, please email the author at ankur@unsupervisedlearningbook.com.\n\n## Set up TensorFlow for macOS Conda Environment\n\nPlease follow these instructions to set up TensorFlow for macOS.\n\nFor **macOS**:\n\n    ```\n    conda env create -f environment_tensorflow_mac.yml\n\tconda activate tensorflow_mac\n\tpip install -r requirements_tensorflow_mac.txt\n\n\tFor Apple Silicon Mac (M1):\n\t\tpip install --upgrade --force --no-dependencies https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl\n\n\tFor Intel Mac:\n\t\tpip install --upgrade --force --no-dependencies https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_x86_64.whl https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_x86_64.whl \n    ```\n\nPlease refer to this [TensorFlow for macOS guide](https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Fissues\u002F153) if you run into issues or contact us.\n","# 使用 Python 实践无监督学习\n\n本仓库收录了安库尔·A·帕特尔所著的奥莱利媒体公司出版书籍《使用 Python 实践无监督学习：如何从无标签数据中构建应用型机器学习解决方案》的代码。\n\n官方图书网站：https:\u002F\u002Fwww.unsupervisedlearningbook.com\u002Fthebook\n\n亚马逊购买链接：https:\u002F\u002Fwww.amazon.com\u002FHands-Unsupervised-Learning-Using-Python\u002Fdp\u002F1492035645\n\n奥莱利 Safari 书店购买链接：https:\u002F\u002Fwww.oreilly.com\u002Flibrary\u002Fview\u002Fhands-on-unsupervised-learning\u002F9781492035633\u002F\n\n关于作者的更多信息：https:\u002F\u002Fwww.ankurapatel.io\n\n## 版本更新\n\n2021年5月：新增对 TensorFlow 2.x 的支持、Fashion MNIST 示例，以及用于降维的 TensorBoard 支持。\n\n## 书籍简介\n\n许多行业专家认为，无监督学习是人工智能领域的下一个前沿方向，它或许能够为人工智能研究中的“圣杯”——即所谓的通用人工智能——揭开神秘面纱的关键。由于全球大部分数据均未经过标注，传统的监督学习无法直接应用；而无监督学习正是为此而生。无监督学习可应用于无标签数据集，帮助我们发掘深藏于数据内部的有意义模式——这些模式往往几乎不可能被人类轻易发现。\n\n作者安库尔·帕特尔通过两个简单且面向生产环境的 Python 框架——scikit-learn 和 TensorFlow——提供了实用的无监督学习应用指南。借助书中提供的动手示例和代码，您将能够识别数据中那些难以察觉的模式，获得更深入的业务洞察，检测异常值，进行自动特征工程与特征选择，并生成合成数据集。只需具备编程基础和一定的机器学习经验，即可轻松入门。\n\n* 比较不同机器学习方法的优势与劣势：监督学习、无监督学习和强化学习\n* 从头到尾搭建并管理一个机器学习项目——从数据采集到模型构建，再到将解决方案投入生产\n* 利用降维算法挖掘数据中最关键的信息，并构建异常检测系统以及时发现信用卡欺诈行为\n* 应用聚类算法对用户进行分组——例如将贷款借款人划分为若干 distinct 且同质的群体\n* 使用自编码器实现自动特征工程与特征选择\n* 将监督学习与无监督学习算法相结合，开发半监督学习方案\n* 使用受限玻尔兹曼机构建电影推荐系统\n* 利用深度信念网络和生成对抗网络生成合成图像\n* 对时间序列数据（如心电图）进行聚类分析\n* 探索无监督学习迄今为止的成功案例及其充满前景的未来发展方向\n\n## Google Colaboratory\n\n如果您希望在 Google Colab 中运行代码（而非本地机器），请按照以下步骤操作：[在 Google Colab 上运行代码的说明](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Faapatel09\u002Fhandson-unsupervised-learning\u002Fblob\u002Fmaster\u002Fgoogle_colab_setup.ipynb)。\n\n## 设置 Conda 主环境\n\n如果您希望在本地机器上运行本仓库中的代码，请按照以下说明操作。\n\n1) 如果您使用的是 macOS，可在终端中运行 `xcode-select --install`，以安装 Xcode 命令行工具。\n\n2) 根据您的操作系统，安装基于 Python 3.8 的 Miniforge 发行版（[Miniforge 官方下载页面](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge#download)）。如果您使用的是 Windows，也可以选择 [Anaconda Python 3.8 发行版](https:\u002F\u002Fwww.anaconda.com\u002Fproducts\u002Findividual)，而非 Miniforge 发行版。\n\n3) 若需支持 NVIDIA GPU，可安装 [CUDA 11.0](https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-11.0-download-archive)。该版本仅适用于部分 NVIDIA GPU。\n\n4) 创建一个新的 Anaconda 环境，并根据您的操作系统按照以下说明进行设置。\n\n对于 **Windows**：\n\n    ```\n    conda env create -f environment_windows.yml\n    conda activate unsupervisedLearning\n    pip install -r requirements_windows.txt\n    ```\n\n对于 **macOS**：\n\n    ```\n    conda env create -f environment_mac.yml\n    conda activate unsupervisedLearning\n    pip install -r requirements_mac.txt\n    ```\n\n5) 从 Google Drive 下载数据（文件过大，不适合在 GitHub 上存储和访问）。\n\n    ```\n    https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F1TQVOPUU4tVOYZvdpbxUo6uOCh0jvWNhv?usp=sharing\n    ```\n\n6) 使用 Jupyter 运行笔记本。\n\n    ```\n    jupyter notebook\n    ```\n\n7) 如果在设置、代码或其他方面遇到任何问题或错误，请发送邮件至作者 ankur@unsupervisedlearningbook.com。\n\n## 在 macOS Conda 环境中设置 TensorFlow\n\n请按照以下说明为 macOS 设置 TensorFlow。\n\n对于 **macOS**：\n\n    ```\n    conda env create -f environment_tensorflow_mac.yml\n    conda activate tensorflow_mac\n    pip install -r requirements_tensorflow_mac.txt\n\n    对于 Apple Silicon Mac（M1）：\n    pip install --upgrade --force --no-dependencies https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl\n\n    对于 Intel Mac：\n    pip install --upgrade --force --no-dependencies https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_x86_64.whl https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_x86_64.whl\n    ```\n\n若在运行过程中遇到问题或需要进一步协助，请参阅 [TensorFlow for macOS 指南](https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Fissues\u002F153)。","# Hands-on Unsupervised Learning 快速上手指南\n\n本指南基于 O'Reilly 书籍《Hands-on Unsupervised Learning Using Python》的开源代码库，帮助开发者快速搭建无监督学习环境并运行示例。\n\n## 环境准备\n\n在开始之前，请确保满足以下系统要求和前置条件：\n\n*   **操作系统**：macOS、Windows 或 Linux。\n*   **Python 版本**：推荐 Python 3.8。\n*   **包管理器**：\n    *   **macOS\u002FLinux**: 推荐安装 [Miniforge](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge) (基于 conda-forge)。\n    *   **Windows**: 可安装 [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fproducts\u002Findividual) 或 Miniforge。\n    *   **macOS 特别提示**: 若使用 macOS，需先安装 Xcode Command Line Tools (`xcode-select --install`)。\n*   **GPU 支持 (可选)**: 若需使用 NVIDIA GPU 加速，请预先安装 [CUDA 11.0](https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-11.0-download-archive)。\n*   **网络环境**: 部分依赖包下载可能较慢，建议配置国内镜像源（如清华源或阿里源）以加速 `conda` 和 `pip` 安装。\n\n## 安装步骤\n\n### 1. 克隆项目与创建环境\n\n首先克隆仓库（如果尚未克隆），然后根据操作系统执行相应的环境配置命令。\n\n**Windows 用户:**\n```bash\nconda env create -f environment_windows.yml\nconda activate unsupervisedLearning\npip install -r requirements_windows.txt\n```\n\n**macOS (Intel\u002FM1) 用户:**\n```bash\nconda env create -f environment_mac.yml\nconda activate unsupervisedLearning\npip install -r requirements_mac.txt\n```\n\n### 2. 配置 TensorFlow (仅限 macOS 用户)\n\n如果您在 macOS 上需要专门配置 TensorFlow 环境（特别是针对 Apple Silicon M1 芯片或 Intel 芯片），请执行以下额外步骤：\n\n```bash\nconda env create -f environment_tensorflow_mac.yml\nconda activate tensorflow_mac\npip install -r requirements_tensorflow_mac.txt\n```\n\n**针对 Apple Silicon Mac (M1):**\n```bash\npip install --upgrade --force --no-dependencies https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl\n```\n\n**针对 Intel Mac:**\n```bash\npip install --upgrade --force --no-dependencies https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_x86_64.whl https:\u002F\u002Fgithub.com\u002Fapple\u002Ftensorflow_macos\u002Freleases\u002Fdownload\u002Fv0.1alpha3\u002Ftensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_x86_64.whl\n```\n\n### 3. 获取数据集\n\n由于数据文件过大，未直接存储在 GitHub 中，需手动从 Google Drive 下载：\n\n1.  访问链接：`https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F1TQVOPUU4tVOYZvdpbxUo6uOCh0jvWNhv?usp=sharing`\n2.  下载所需数据文件。\n3.  将文件放置于项目对应的数据目录中（具体路径请参考各 Notebook 文件的说明）。\n\n### 4. 替代方案：Google Colab\n\n如果您不想在本地配置环境，可以直接使用 Google Colab 运行代码：\n*   访问设置指南：[Run on Google Colab](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Faapatel09\u002Fhands-on-unsupervised-learning\u002Fblob\u002Fmaster\u002Fgoogle_colab_setup.ipynb)\n\n## 基本使用\n\n环境配置完成后，您可以启动 Jupyter Notebook 来探索书中的无监督学习案例（包括聚类、降维、异常检测、生成模型等）。\n\n1.  激活环境（如果尚未激活）：\n    ```bash\n    conda activate unsupervisedLearning\n    # 或者对于 macOS TensorFlow 专用环境\n    # conda activate tensorflow_mac\n    ```\n\n2.  启动 Jupyter Notebook：\n    ```bash\n    jupyter notebook\n    ```\n\n3.  在浏览器打开的界面中，选择任意 `.ipynb` 文件（例如涉及 Fashion MNIST 或信用卡欺诈检测的示例）即可开始运行代码和学习。","某金融科技公司数据团队正试图从海量无标签的用户交易记录中挖掘潜在风险，以构建新一代反欺诈系统。\n\n### 没有 handson-unsupervised-learning 时\n- **数据利用率低**：面对 95% 以上无标签的交易数据，团队只能依赖少量人工标注样本训练监督模型，导致大量隐藏模式被忽略。\n- **特征工程耗时**：缺乏自动化工具，分析师需手动尝试数百种特征组合，耗时数周仍难以捕捉复杂的非线性欺诈行为。\n- **异常检测不准**：传统规则引擎误报率高，无法动态适应新型欺诈手段，常将正常大额消费误判为风险，影响用户体验。\n- **用户分群粗糙**：仅凭简单统计指标划分用户，无法识别具有相似潜在风险的隐蔽群体，导致风控策略“一刀切”。\n- **技术落地困难**：团队虽了解聚类或降维理论，但缺乏基于 TensorFlow 和 scikit-learn 的生产级代码参考，模型从实验到部署周期漫长。\n\n### 使用 handson-unsupervised-learning 后\n- **激活沉睡数据**：直接套用书中无监督学习方案，利用全部 unlabeled 数据进行训练，成功发现人工难以察觉的复杂欺诈关联模式。\n- **自动化特征提取**：利用提供的自编码器（Autoencoder）代码实现自动特征工程与选择，将原本数周的工作缩短至几天，且特征表达力更强。\n- **精准捕获异常**：基于书中的降维算法构建异常检测系统，显著降低误报率，并能实时识别从未见过的新型欺诈变种。\n- **精细化用户画像**：应用成熟的聚类算法将贷款用户细分为多个同质群体，针对不同风险层级制定差异化监控策略，提升拦截效率。\n- **快速生产部署**：依托书中基于 TensorFlow 2.x 和 scikit-learn 的完整示例代码，团队迅速复现并微调模型，将研发到上线的周期压缩了 60%。\n\nhandson-unsupervised-learning 通过提供生产级的代码实战指南，帮助团队将无标签数据转化为核心风控资产，实现了从“被动防御”到“主动洞察”的技术跨越。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Faapatel09_handson-unsupervised-learning_f1c226f9.png","aapatel09","Ankur A. Patel","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Faapatel09_1f11d29c.png","Founder and CEO of Multimodal. 3x founder (Glean AI, r-squared macro). Ex-Bridgewater, JPM, Thetaray, and 7Park Data (acq. Vista Equity Partners). 2x author.","@multimodalcompany ","New York, NY",null,"ankurapatel.io","https:\u002F\u002Fgithub.com\u002Faapatel09",[85,89],{"name":86,"color":87,"percentage":88},"Jupyter Notebook","#DA5B0B",100,{"name":90,"color":91,"percentage":92},"Python","#3572A5",0,698,351,"2026-04-04T03:10:14","macOS, Windows","非必需。若需支持，需要选定的 NVIDIA GPU 并安装 CUDA 11.0。","未说明",{"notes":100,"python":101,"dependencies":102},"1. macOS 用户需先安装 Xcode Command Line Tools。2. Windows 用户可选用 Anaconda 发行版，其他系统推荐 Miniforge。3. Apple Silicon (M1) 和 Intel Mac 需分别安装特定版本的 tensorflow_macos 和 tensorflow_addons_macos wheel 包。4. 数据集文件过大未存储在 GitHub，需手动从提供的 Google Drive 链接下载。5. 提供 Google Colab 运行方案作为本地环境的替代。","3.8",[103,104,105,86,106],"scikit-learn","TensorFlow 2.x","TensorBoard","conda",[13],[109,110,111,112,113,114,115,116],"unsupervised-learning","machine-learning","clustering","anomaly-detection","autoencoders","generative-adversarial-network","artificial-intelligence","deep-learning","2026-03-27T02:49:30.150509","2026-04-06T07:11:49.118788",[120,125,130,135,139,144],{"id":121,"question_zh":122,"answer_zh":123,"source_url":124},6410,"如何下载本书缺失的数据集文件（如 credit_card.csv）？","可以通过 AWS 命令行工具从 S3 存储桶下载数据集。首先安装指定版本的 awscli：\n`pip install awscli==1.19.28`\n然后进入项目根目录，运行以下命令将数据下载到 `datasets` 文件夹：\n`aws s3 cp s3:\u002F\u002Fhandson-unsupervised-learning\u002Fdatasets\u002F datasets --recursive --no-sign-request`\n如果在 Jupyter Notebook 中运行，请在命令前加 `!`，例如：\n`!pip install awscli==1.19.28`\n`!aws s3 cp s3:\u002F\u002Fhandson-unsupervised-learning\u002Fdatasets\u002F datasets --recursive --no-sign-request`","https:\u002F\u002Fgithub.com\u002Faapatel09\u002Fhandson-unsupervised-learning\u002Fissues\u002F19",{"id":126,"question_zh":127,"answer_zh":128,"source_url":129},6411,"去噪自编码器（Denoising Autoencoder）训练时，为什么目标标签（target label）是带噪声的输入而不是原始干净数据？","这是一个常见的误解。去噪自编码器的核心原理是通过“欠拟合”（underfitting）来学习数据中的共同“信号”并忽略罕见的“噪声”。如果让模型直接学习从噪声重建原始干净数据，它可能会过度关注噪声细节。通过在带噪声的输入上训练并尝试重建带噪声的输入（但在受限的容量下），模型被迫学习数据的主要结构（信号），从而在实际上实现了去噪效果。只要噪声不是压倒性的，这种策略在实践中非常有效。","https:\u002F\u002Fgithub.com\u002Faapatel09\u002Fhandson-unsupervised-learning\u002Fissues\u002F6",{"id":131,"question_zh":132,"answer_zh":133,"source_url":134},6412,"使用 PCA 进行异常检测时，为什么必须在训练集上拟合模型，而不能在整个数据集上运行？","在无监督学习的异常检测任务中，必须严格区分训练集和测试集以防止数据泄露。如果在全量数据上拟合 PCA（即 `pca.fit_transform(X)` 其中 X 包含所有数据），主成分的方向会受到异常值的影响，导致重构误差计算不准确，从而无法正确识别异常。正确的做法是：先划分训练集和测试集，仅在训练集上拟合 scaler 和 PCA 模型，然后用该模型转换训练集和测试集，最后计算测试集的重构误差作为异常分数。","https:\u002F\u002Fgithub.com\u002Faapatel09\u002Fhandson-unsupervised-learning\u002Fissues\u002F10",{"id":136,"question_zh":137,"answer_zh":138,"source_url":129},6413,"如果有干净的无噪声数据，是否可以直接训练自编码器重建原始数据而不是噪声数据？","是的，如果您拥有干净的无噪声数据，直接训练自编码器重建原始数据（即输入和输出均为干净数据）通常效果更好。在这种情况下，您不需要引入人为噪声。但需要注意控制训练轮数（epochs）以避免过拟合：既要防止欠拟合导致学不到特征，也要防止过拟合导致模型死记硬背数据而非学习通用表示。",{"id":140,"question_zh":141,"answer_zh":142,"source_url":143},6414,"书中的代码示例是否支持 TensorFlow 2.0？","是的，社区贡献者已将代码移植以兼容 TensorFlow 2.0。这些更新主要适用于第 2 章及之后的章节（直到第 8 章，因为第 7 章没有代码）。维护者已确认接受这些贡献，并计划逐步将新的 notebooks 合并到项目中。","https:\u002F\u002Fgithub.com\u002Faapatel09\u002Fhandson-unsupervised-learning\u002Fissues\u002F5",{"id":145,"question_zh":146,"answer_zh":147,"source_url":129},6415,"在去噪自编码器中，预测阶段应该使用带噪声的测试集还是原始测试集？","在评估去噪自编码器性能时，通常使用带噪声的测试集作为输入进行预测，以模拟真实场景中模型处理含噪数据的能力。模型的目标是从带噪输入中恢复出尽可能接近原始信号的结果。虽然也可以尝试用原始测试集预测，但这不符合去噪任务的设定；标准做法是输入噪声数据，观察模型输出的重构结果与原始干净数据的接近程度（通过验证集监控）。",[149],{"id":150,"version":151,"summary_zh":152,"released_at":153},105972,"v1.0","May 2021: Added support for TensorFlow 2.x and TensorFlow for Mac M1, Fashion MNIST examples, and Tensorboard for Dimensionality Reduction.","2021-05-12T13:31:14"]