• +91 9723535972
  • info@interviewmaterial.com

Machine Learning Interview Questions and Answers

Question - Why do we need to convert categorical variables into factor? Which functions are used to perform the conversion?

Answer -

Most Machine learning algorithms require number as input. That is why we convert categorical values into factors to get numerical values. We also don't have to deal with dummy variables.

The functions factor() and as.factor() are used to convert variables into factors.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners