0

I am a beginner in machine learning and i want to know if it's okay not to do label encoding our y variable before applying logistic regression or other classification algorithms on data. Or should we label encode target variable before fitting on different algorithms.

Im trying to build classification model on iris dataset where SL, SW, PL, PW all are numerical and my target variable i.e, class has categorical values like iris setosa, virginica, etc.

  • Welcome to Stack Overflow. Please take the 2-minute [tour]. Moreover, open [Help] and read at least [ask]. Then, [edit] your question to provide a [mcve]. – JosefZ Oct 29 '22 at 10:04

0 Answers0