The target variable,
Saleprice originally is a
continuous value. I calculated
feature importance on the other variables except Saleprice and got a ranking of the features.
My teacher said that I do not allow the target variable, Saleprice to be explored as the other variables. As Independent variable is used to predict SalePrice which is the target variable. Target variable can be treated as a dependent variable because it depends on the independent variables.
She suggested to use I can explore Saleprice because it is a continuous variable to
binning method, for example binning Saleprice from 100k to 150k . The range can be regarded as a single value. (treated as a discrete value)
May I know how should I apply the binning method on Saleprice to make it as a discrete variable?
how does that being a discrete variable can help me better in building of model and prediction of Saleprice?
Dataset I just use the train data only.