When I can split my dataset into training and validation set before PCA or after PCA?

Viewed 106

I want to split my dataset to training and validation sets I don't know whether I should split the dataset before applying pca dimensionality reduction or after pca to avoid leakage of data.

Any help would be appreciated.

1 Answers

The dataset should split before applying PCA to avoid leakage of data

Related