Machine Learning Using Python Dummy Variables & One Hot Encoding: Lesson 5

Machine learning models work very well for dataset having only numbers. But how do we handle text information in dataset? Simple approach is to use interger or label encoding but when categorical variables are nominal, using simple label encoding can be problematic. One hot encoding is the technique that can help in this situation. In this tutorial, we will use pandas get_dummies method to create dummy variables that allows us to perform one hot encoding on given dataset. Alternatively we can use sklearn.preprocessing OneHotEncoder as well to create dummy variables.



machine learning,machine learning dummy variables,dummy variables,machine learning with python,one hot encoding machine learning,machine learning tutorial,dummy variable,dummy variables machine learning python machine learning for beginners,python machine learning for beginners,python,dummy variable trap,python machine learning,machine learning tutorial for beginners python,dummy variables in machine learning,machine learning tutorial for beginners,dummy variable machine learning