「 机器学习 」 August 20, 2018
5-4 使用PCA进行降噪
Words count 3.1k Reading time 3 mins.
import numpy as np
import matplotlib.pyplot as plt
X = np.empty((100,2))
X[:,0] = np.random.uniform(0.,100.,size=100)
X[:,1] = 0.75 * X[:,0] + 3. + np.random.normal(0,5,size=100)
plt.scatter(X[:,0],X[:,1])
plt.show()
from sklearn.decomposition ...
Read article