Encoding Categorical Variables — Roadmap Step & Resources
One-hot encoding, label encoding and when each is appropriate
- Level: intermediate
- Estimated time: 1 days
- Roadmap: Machine Learning
Before this step
Interview questions
- Why can label encoding mislead a model that assumes numeric order matters?
Study resources
- Encoding categorical features (Article) — The official scikit-learn documentation on one-hot and ordinal encoding.
- Categorical Encoding Explained (Video) — A practical walkthrough of one-hot, label and target encoding.
Part of
- Data Analysis & Preprocessing — section
- Machine Learning roadmap — the full learning path