DEV Community

Discussion on: Analyzing WFH Survey Data

Collapse
 
bababrownbear profile image
Haseeb Mohammed

I had gotten a question via slack, "What was the reasoning behind making gender a true/false "Are you a Male" response?"

It was so I could evaluate it as a boolean instead of a difference between two strings, "Male" "Female" vs True False. It's the simplest implementation of a technique called One Hot Encoding.

machinelearningmastery.com/why-one...