In Scikit-learn, ____ is used to encode categorical variables into numerical format.

  • Imputer
  • LabelEncoder
  • PrincipalComponentAnalysis
  • RandomForest
In Scikit-learn, the LabelEncoder class is used to encode categorical variables into numerical format. It assigns a unique integer to each category, which can be useful when working with machine learning algorithms that require numerical input. This transformation is essential to handle categorical data effectively in many machine learning tasks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *