Skip to Content
《使用 Scikit-Learn、Keras 和 TensorFlow 进行实践机器学习》第三版
book

《使用 Scikit-Learn、Keras 和 TensorFlow 进行实践机器学习》第三版

by Aurélien Géron
May 2025
Intermediate to advanced
864 pages
12h 32m
Chinese
O'Reilly Media, Inc.
Content preview from 《使用 Scikit-Learn、Keras 和 TensorFlow 进行实践机器学习》第三版

序言

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

机器学习海啸

2006 年,杰弗里-辛顿等人发表了一篇论文1展示了如何训练一个深度神经网络,使其能够以最先进的精度(大于 98%)识别手写数字。他们将这种技术称为 "Deep Learning"。深度神经网络是我们大脑皮层的一个(非常)简化的模型,由层层叠叠的人工神经元组成。当时,人们普遍认为训练深度神经网络是不可能的。2大多数研究人员在 20 世纪 90 年代末放弃了这一想法。这篇论文重新唤起了科学界的兴趣,不久之后,许多新论文都证明,深度学习不仅是可能的,而且能够取得其他机器学习(ML)技术望尘莫及的惊人成就(在巨大计算能力和海量数据的帮助下)。这种热情很快扩展到机器学习的许多其他领域。

十年后,机器学习征服了整个行业,如今,它已成为高科技产品中许多神奇功能的核心,为你的网络搜索结果排序,为你的智能手机提供语音识别功能,为你推荐视频,甚至为你驾驶汽车。

项目中的机器学习

因此,您自然会对机器学习感到兴奋,并希望加入这个行列!

也许您想让自制的机器人拥有自己的大脑?让它识别人脸?或者让它学会走动?

或者,您的公司拥有大量数据(用户日志、财务数据、生产数据、机器传感器数据、热线统计、人力资源报告等),如果您知道从哪里寻找,很可能会发现一些隐藏的宝藏。利用机器学习,您可以实现以下目标,甚至更多:

  • 对客户进行细分,为每个群体找到最佳营销策略。

  • 根据类似客户的购买情况,为每位客户推荐产品。

  • 检测哪些交易可能是欺诈性的。

  • 预测明年的收入。

无论出于什么原因,您已经决定学习机器学习并将其应用到您的项目中。好主意

目标和方法

本书假定你对机器学习几乎一无所知。本书的目标是为你提供实现能够从数据中学习的程序所需的概念、工具和直觉。

我们将涉及大量技术,从最简单、最常用的技术(如线性回归)到一些经常在竞赛中获奖的 Deep Learning 技术。为此,我们将使用生产就绪的 Python 框架:

  • Scikit-Learn非常简单易用,而且能高效地实现许多机器学习算法,是学习机器学习的绝佳入门工具。它由 David Cournapeau 于 2007 年创建,目前由法国计算机科学与自动化研究所(Inria)的一个研究团队领导。

  • TensorFlow是一种更复杂的分布式数值计算库。它通过在数百台多 GPU(图形处理器)服务器之间分配计算,使高效训练和运行超大型神经网络成为可能。TensorFlow(TF)由谷歌创建,支持其许多大规模机器学习应用。它于 2015 年 11 月开源,2.0 版本于 2019 年 9 月发布。

  • Keras是一种高级深度学习 API,可以非常简单地训练和运行神经网络。Keras 与 TensorFlow 捆绑在一起,它依赖 TensorFlow 进行所有密集计算。

本书倾向于采用动手实践的方法,通过具体的工作实例和少量的理论来加深对机器学习的直观理解。

提示

虽然你可以不拿起笔记本电脑阅读本书,但我强烈建议你尝试使用代码示例。

代码示例

本书中的所有代码示例都是开源的,可以通过https://github.com/ageron/handson-ml3 以 Jupyter 笔记本的形式在线获取。这些是包含文本、图像和可执行代码片段(在我们的例子中是 Python)的交互式文档。最简单快捷的入门方法是使用 Google Colab 运行这些笔记本:这是一项免费服务,允许您直接在线运行任何 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
学习 API 风格

学习 API 风格

Lukasz Dynowski, Marcin Dulak
《高性能 Python》第二版

《高性能 Python》第二版

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9798341656598