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

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

by Aurélien Géron
October 2020
Intermediate to advanced
693 pages
16h 26m
Chinese
China Machine Press
Content preview from 机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)
使用
RNN
CNN
处理序列
437
Y
(0)
X
(0)
X
(1)
X
(2)
X
(3)
X
(4)
Y
(1)
Y
(2)
C(Y
(2)
, Y
(3)
, Y
(4)
)
W,b W,b W,b W,b W,b
Y
(3)
Y
(4)
15-5:时间反向传播
15.3 预测时间序列
假设你正在研究网站上每小时的活跃用户数、城市的每日温度或使用多个指标来评估每
个季度公司的财务状况。在所有这些情况下,数据是每个时间步长一个或多个值的序
列。这称为时间序列。在前两个示例中,每个时间步长只有一个值,因此它们是单变量
时间序列,而在财务示例中,每个时间步长有多个值(例如,公司的收入、债务等),因
此它是一个多变量时间序列。典型的任务是预测未来值,这称为预测。另一个常见任务
是填补空白:预测过去的缺失值。这称为插补。例如,图 15-6 显示了 3 个单变量时间序
列,每个时间序列的长度是 50 个时间步长,此处的目标是预测它们下一个时间步长的
值(用 X )。
x
(
t
)
t t t
15-6:时间序列预测
为简单起见,我们使用由 generate_time_series() 函数生成的时间序列,如下所示:
def
generate_time_series(batch_size, n_steps):
freq1, freq2, offsets1, offsets2 = np.random.rand(4, batch_size, 1)
time = np.linspace(0, 1, n_steps)
series = 0.5 * np.sin((time ...
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

算法技术手册(原书第2 版)

算法技术手册(原书第2 版)

George T.Heineman, Gary Pollice, Stanley Selkow
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey

Publisher Resources

ISBN: 9787111665977