The sklearn.preprocessing.LabelEncoder is a Python class available in the scikit-learn library that is used for encoding categorical features into numerical values. It assigns a unique numerical label to each unique category from the input data. This can be useful when working with machine learning algorithms that only accept numerical inputs. The LabelEncoder class provides methods for fitting the encoder on the data, transforming the categories into numerical labels, as well as inverse transforming the labels back into their original categories.
Python LabelEncoder - 60 examples found. These are the top rated real world Python examples of sklearn.preprocessing.LabelEncoder extracted from open source projects. You can rate examples to help us improve the quality of examples.