Changing order of LabelEncoder() result
Assume I have a multi-class classification task. The labels are:
- Class 1
- Class 2
- Class 3
After LabelEncoder(), the labels are transformed into 0-1-2.
My questions are:
- Do the labels have to start from 0?
- Do the labels have to be sequential?
- What happens if I replace all label 0s with 3 so that my labels are 1-2-3 instead of 0-1-2 (This is done before training)
- If the labels were numeric such as 10-100-1000, will I still have to use LabelEncoder() to encode them into 0-1-2?
Topic encoder labels multilabel-classification scikit-learn
Category Data Science