OER·harvester

← Back to the library
Zenodo PDF resource

Foundations of Artificial Intelligence & Machine Learning

Licence
OPEN CC-BY-4.0
Authors
Nidhi Sharma, Honey Singh, Ajay Sharma, Deepak Dagar
Published
2026-07-28 · Zenodo
Language
eng
Length
37166 words
Type
narrative text
Open ↗ Download Open original ↗
Label Encoding

In Label Encoding, each category receives a unique numerical value. Example: Red = 1 Blue = 2 Green = 3 This method is simple but may unintentionally introduce numerical relationships between categories. One-Hot Encoding One-Hot Encoding creates separate binary columns for each category. This method avoids misleading numerical ordering and is widely used in machine learning preprocessing.