Top 50 Interview Questions Of Machine Learning
February 7, 2022 ⚊ 1 Min read ⚊ Views 223 ⚊ EDUCATIONHow to handle categorical variables in KNN?
Ans: Create dummy variables out of a categorical variable and include them instead of the original categorical variable. Unlike regression, create k dummies instead of (k-1).
For example, a categorical variable named “Department” has 5 unique levels/categories. So we will create 5 dummy variables. Each dummy variable has 1 against its department and else 0.
Can KNN be used for Regression? How to use KNN for Regression?
Discuss the difference between KNN and K Means Algorithms.
Tags: bests Machine Learning course, machine learning, Machine Learning course