MulaiMulai sekarang secara gratis

Calculating the envelope of sound

One of the ways you can improve the features available to your model is to remove some of the noise present in the data. In audio data, a common way to do this is to smooth the data and then rectify it so that the total amount of sound energy over time is more distinguishable. You'll do this in the current exercise.

A heartbeat file is available in the variable audio.

Latihan ini adalah bagian dari kursus

Machine Learning for Time Series Data in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Plot the raw data first
audio.____(figsize=(10, 5))
plt.show()
Edit dan Jalankan Kode