Now define the "transform" method that transforms the input data into a lower-dimensional representation using the calculated eigenvectors. Finally the "inverse_transform" method to reconstructs the reduced data back to the original space using eigenvectors and mean.
Implementing PCA Transform and Inverse Transform Methods
By
–
Leave a Reply