1 min readfrom Machine Learning

How should I encode both target and feature variable for a multiclass classification? [D]

I am preprocessing a CSV dataset for multiclass classification with XGBoost. My Feature variable contain numerical and categorical values, while the target variable contain many categorical value. For example, feature variables contain patient name, phone number, and exercise history, while Target variable contain different disease name such as heart attack, stroke, Alzheimer's etc.

I know that feature variables can be encoded using one-hot encoding, but should the target variable also be encoded using the same method, or should I use a different encoding method for target variable (e.g., label encoding)?

If anyone know the answer, please let me know. I have searched everywhere, but failed to get any clear idea about it. Thank you.

submitted by /u/Rami02021
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#natural language processing for spreadsheets
#generative AI for data analysis
#Excel alternatives for data analysis
#rows.com
#large dataset processing
#financial modeling with spreadsheets
#multiclass classification
#feature variable
#target variable
#encoding
#one-hot encoding
#label encoding
#XGBoost
#categorical values
#numerical values
#CSV dataset
#preprocessing
#patient name
#phone number
#exercise history