Skip to Content
深度学习实战手册(R语言版)
book

深度学习实战手册(R语言版)

by Posts & Telecom Press, PKS Prakash, Achyutuni Sri Krishna Rao
May 2024
Intermediate to advanced
246 pages
3h 53m
Chinese
Packt Publishing
Content preview from 深度学习实战手册(R语言版)

第5章 深度学习中的生成模型

本章将介绍以下主题:

  • 比较主成分分析和受限玻尔兹曼机;
  • 为伯努利分布输入配置受限玻尔兹曼机;
  • 训练受限玻尔兹曼机;
  • 受限玻尔兹曼机的反向或重构阶段;
  • 了解重构的对比散度;
  • 初始化并启动一个新的TensorFlow会话;
  • 评估受限玻尔兹曼机的输出;
  • 为协同过滤构建一个受限玻尔兹曼机;
  • 执行一个完整的受限玻尔兹曼机训练;
  • 构建深度信念网络;
  • 实现前馈反向传播神经网络;
  • 建立一个深度受限玻尔兹曼机。

在本节中,将学习两种广泛推荐的降维技术——主成分分析(Principal Component Analysis,PCA)和受限玻尔兹曼机(Restricted Boltzmann Machine,RBM)。考虑n维空间中的向量v,维度降低技术实质上将向量v转换为具有m维(m<n)的相对较小(或有时相等)的向量v'。转换可以是线性或非线性的。

PCA对特征执行线性变换,从而生成正交调整的成分,稍后根据它们的方差捕获的相对重要性对其进行排序。这些m个成分可以被视为新的输入特征,可以定义为:

向量 \boldsymbol{v}'=\sum\nolimits^m_{i=1}w_ic_i

此处,w和c分别对应于权重(加载)和变换后的成分。

与PCA不同,RBM(或深度置信网络 /自动编码器)使用可见和隐藏单元之间的连接执行非线性转换,如第4章“使用自动编码器的数据表示”中所述。非线性有助于更好地理解与潜在变量的关系。随着信息捕获,它们也倾向于消除噪声。RBM通常基于随机分布(伯努利或高斯)。

 进行大量的吉布斯采样来学习和优化可见层和隐藏层之间的连接权重。优化发生在两个阶段:使用给定的可见层对隐藏层进行采样的正向过程,以及使用给定隐藏层对可见层进行重新采样的向后过程。执行优化以使重构误差最小化。 ...

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

人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
基于Python的智能文本分析

基于Python的智能文本分析

Benjamin Bengfort, Rebecca Bilbro, Tony Ojeda
面向MapReduce的Hadoop优化

面向MapReduce的Hadoop优化

Posts & Telecom Press, Khaled Tannir
Python计算机视觉和自然语言处理

Python计算机视觉和自然语言处理

Posts & Telecom Press, Álvaro Morena Alberolaï, Gonzalo Molina Gallegoï, Unai Garay Maestreï

Publisher Resources

ISBN: 9781836200932