目录
当前位置: 首页 > 文档资料 > Edward 中文文档 >

observations.musedata

优质
小牛编辑
134浏览
2023-12-01
musedata(path)

Load the MuseData library of music scores. It includes both orchestral and piano classical music. Data is loaded in the piano-roll representation (Boulanger-Lewandowski, Bengio, & Vincent, 2012), i.e., a binary matrix specifying which notes occur at each time step.

Args:

  • path: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename is MuseData.pickle.

Returns:

list of x_train, x_test, x_valid, where each is a list of sequences. Each sequence is itself a list of time steps, and each time step is a list of the non-zero elements in the piano-roll at this instant (in MIDI note numbers, between 21 and 108 inclusive).

Boulanger-Lewandowski, N., Bengio, Y., & Vincent, P. (2012). Modeling temporal dependencies in high-dimensional sequences: Application to polyphonic music generation and transcription. In International conference on machine learning.