apply pca to input features