Dummy variables || machine learning tutorial using python

preview_player
Показать описание
In this tutorial, I have explained "dummy variables" in LinearRegression
with example...

visit my website:
Рекомендации по теме
Комментарии
Автор

I have a question. There are two variables and dozens of observations on the set that we converted to dummy variables. If we delete one of the dummy variables and then delete the original variable, how does the train time machine understand which one belongs to which one?

Data: Remarked_C Remarked_Q Remarked_S Sex_Female Sex_male



E.g;
Sex_Female and Remarked_C have been deleted.
Then came the new variable for prediction: Sex_Male: 0, Remarked_Q: 0 Remarked_Q: 0, 1, 0. Is it Sex_Female 0 or is it Remarked_C 0?
How does the machine know which variable is Sex_Female and which is Remarked_C? (No ordering because real variables have been deleted



P.s. If you do not understand the question, I apologize for my bad English.

the.texnik
welcome to shbcf.ru