The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Dummy variables

Dummy variables

0
Votes
1
Answer

Hello,
Hope you are safe.
I need to know how to deal with dummies in neural networks?
For instance if I have 3 dummy variables, Can I add 3 more inputs with values like [0, 0, 1] ?
Thank you in advance.
Regards.

1 Answer

365 Team
0
Votes

Hi Hady,
In the way you have phrased it, I don’t think so. Could you please show an example so I can be sure what you mean?
Best,
Iliya

Well …I have 6 inputs, 3 of them are numerical [continuous] and 3 are categorical…I have no problem with numerical ones but, how can I deal with categorical inputs?

8 months

Hi Hady, you could simply use the built in pandas method ‘get dummies’. Here’s the documentation: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.get_dummies.html .It will split you data into dummies accordingly. Just make sure to drop one of them (drop_first=True). Best, Iliya

8 months
×
Complete Data Science Training
Save 60%