0

I am creating a model to predict customer churn. Checking this post, a couple of doubts came up:

-All the transformation we do when training the data, it is necessary to perform also when predicting? e.g, If I do 'One-hot encoding' over a column when training the algorithm, should I encode again when I predict with the final model?.

-All this transformations are store within the .pkl file so that, when we call the predict method, all those transformations occurs?

Sorry if this question does not make sense, but I'm newbie with this

1 Answers1

1

Yes, all the transformation which you apply on training data you should apply on test data and any new data. Depending on type of transformation it can be stored as a pickle file or just simple as a method.

Ashwiniku918
  • 2,092
  • 5
  • 18