Python, Machine Learning, Statistics, Data Science, Technology.
the original data! # P_reduce represents reduced mathematical space.... P_reduce = np.array(eigvectors_sorted[0:8]) # Reducing from 8 to 4 dimension space X_std_8D = np.dot(X_std,P_reduce.T) # projecting original data into principal component dimensions reduced_pca = pd.DataFrame(X_std_8D) #