Skip to Content
人工智能技术与大数据
book

人工智能技术与大数据

by Posts & Telecom Press, Anand Deshpande, Manish Kumar
May 2024
Intermediate to advanced
295 pages
4h 32m
Chinese
Packt Publishing
Content preview from 人工智能技术与大数据

第10章 强化学习

我们在第3章中介绍了机器学习的两种基本类型:监督学习和无监督学习。监督学习利用历史数据(观测值)训练模型,并根据新的数据输入预测结果;而在无监督学习中,模型尝试在数据集中提取模式,并定义逻辑分组边界以分隔解空间。除了这两种算法,还有第三种机器学习算法对人工智能的发展同等重要。

请回忆学习骑自行车的过程。我们观察一个骑自行车的人,建立一个如何骑自行车的心理模型,然后自己尝试骑自行车。在第一次尝试中,我们几乎不能保持自行车的平衡和前进。我们(行为者)在路上(环境)做第一次尝试(行为),可能会跌倒(奖励)。我们一遍又一遍地尝试着用不同的速度和不同的踏板策略保持左右两边的平衡,这样可能会前进更远的距离(更高的奖励),最终学会正确骑行(目标)。这一过程会重复多次,会根据环境条件及时强化正确的行为,以实现奖励的最大化。

上面的过程叫作强化学习。这是机器学习算法的第三个基本类型,我们将在本章中学习。本章主要介绍以下内容:强化学习算法的概念、Q-learning、SARSA学习以及深度强化学习。

下面我们创建一个简单的强化学习模型,同时介绍其中的术语,如图10-1所示。

图10-1 强化学习的模型

在时间(t)的各个步骤中,智能代理会:

(1)执行行为at;

(2)接收观测ot;

(3)接收奖励rt。

在时间(t)的各个步骤中,环境会:

(1)接收行为at;

(2)生成观测ot+1;

(3)生成标量的奖励rt+1。

环境是不确定的。(基于ot的行为 ...

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

全栈Serverless

全栈Serverless

Nader Dabit
神经网络算法与Java编程

神经网络算法与Java编程

Posts & Telecom Press, Fabio M. Soares, Alan M. F. Souza
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Python3.0科学计算指南

Python3.0科学计算指南

Posts & Telecom Press, Claus Führer, Jan Erik Solem, Olivier Verdier

Publisher Resources

ISBN: 9781836202653