Question
Say I have a dataset $D$ with $N$ features that are trying to predict a target $y$. I would like to build a model from $D$ and part of that process is removing correlated columns to reduce redundancy.
If $D$ remains constant, would changing the target $y$ ever change the method I use to check for correlation within the dataset $D$?
Redundancy
For an example of what I mean by redundancy see: https://arxiv.org/abs/1908.05376. I'm not interested in the relevancy part of the paper.
Example
Say I'm using dataset $D$ to train a classification model. As part of preprocessing I check for correlations using method $M$, which could be any type of correlation algorithm, provided $M$ is unsupervised.
I choose one column from each correlated group at random. In other words, I select columns in an unsupervised fashion.
Should I ever change $M$ if I switch from a classification to a regression model, changing $y$ in the process?
Pre-empting XY
This is intended as a general question, which will lead to a specific question. The content of the specific question will depend on the answer to this question. Therefore, I believe it is not XY.