Definition: noise refers to incorrect/distorted data values.
How to deal with noise depends on type of data:
In [6]:
import numpy as np
import wave
import matplotlib.pyplot as plt
import seaborn as sns
import utils
utils.set_plotting_style()
%matplotlib inline
spf = wave.open('data/exhibition.wav','r')
# Extract Raw Audio from Wav File
signal = spf.readframes(-1)
signal = np.fromstring(signal, 'Int16')
fig = plt.figure(1, figsize=(30,10))
ax = fig.add_subplot(2,1,1)
plt.title('Original Signal Wave', size=30)
for tick in ax.xaxis.get_major_ticks():
tick.label.set_fontsize(0)
tick.label.set_rotation(45)
for tick in ax.yaxis.get_major_ticks():
tick.label.set_fontsize(24)
plt.plot(signal)
ax = fig.add_subplot(2,1,2)
plt.title('Filtered Signal Wave', size=30)
for tick in ax.xaxis.get_major_ticks():
tick.label.set_fontsize(24)
tick.label.set_rotation(45)
for tick in ax.yaxis.get_major_ticks():
tick.label.set_fontsize(24)
plt.plot(signal)
plt.show()
Definition: Data points/objects that are considerebly differnet than most of the other objects in a dataset.
Entropy of each attribute
## 5.