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.
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.