Importance of one hot encoding

Why labels are one hot encoded. What is the significance??

hey @Ankit003 ,
It depends upon the data, there is no such particular fixed significance of using one hot vectors.
Sometimes there is a situation that , that a particular class of in any column is useful to understand such relationships between the data. Hence , if we use that full column we might not be able to decide that relationship, and if we one hot encode them , then we might get a proper understanding of the data.

Most of the times it used with basic algorithms like logistic regression regression , decision tree , etc. as these algorithms aren’t configured to deal with categorical data. Hence we need to one hot encode our data to be made useful for these algorithms.

i hope this helped understand it.
Thank You and Happy Learning :slightly_smiling_face:.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.