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语言版)

第9章 深度学习在信号处理中的应用

本章将介绍使用生成式建模技术(如RBM)创建新音符的案例研究。在本章中,我们将介绍以下主题:

  • 介绍并预处理音乐MIDI文件;
  • 建立RBM模型;
  • 生成新的音符。

在本节中,我们将读取乐器数字接口(Musical Instrument Digital Interface,MIDI)文件库,并将它们预处理为适合RBM的格式。 MIDI是存储音符的格式之一,可以将其转换为其他格式,如.wav、.mp3、.mp4等。MIDI文件格式存储各种类型的事件,如音符开始(Note-on)、音符结束(Note-off)、节奏(Tempo)、拍号(Time Signature)、曲目结束(End of track)等。但是,我们主要关注音符的类型——何时开始以及何时结束。

每首歌都被编码成一个二进制矩阵,其中行代表时间,列代表开始和结束音符。在每个时间点,开始一个音符并结束同一个音符。假设在n个音符中,音符i在时间点j开始并结束,位置\boldsymbol{M}_{ji}=1且\boldsymbol{M}_{j}(n+i)=1,其余的。

所有的行一起组成一首歌。目前,在本章中,我们将利用Python代码将MIDI歌曲编码为二进制矩阵,之后可以在受限玻尔兹曼机器中使用该矩阵。

我们来看看预处理MIDI文件的先决条件。 ...

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