Question
Which data transformation technique would be best for
converting categorical variables, such as “Gender” (Male, Female), into a format usable in machine learning models?Solution
One-hot encoding is a technique used to convert categorical variables into a numerical format, where each category is represented by a binary variable. For instance, in the “Gender” variable, one-hot encoding would create two binary columns: “Male” and “Female.” Each observation will have a value of 1 in one column and 0 in the other, making the data usable in machine learning algorithms that require numerical input. One-hot encoding prevents ordinal relationships from being falsely implied, ensuring accurate representation of non-numeric data in modeling. The other options are incorrect because: • Option 1 (normalization) scales data but is ineffective for categorical conversion. • Option 3 (logarithmic transformation) is used for continuous data to reduce skew, not categorical data. • Option 4 (binning) groups continuous data into categories rather than encoding existing categories. • Option 5 (polynomial transformation) applies to numerical features and is unrelated to categorical conversion.
Nykaa, fashion eCommerce platform founder and CEO ______ who is a self made woman billionaire.
Nauroz is celebrated by which of the following communities in India?
Which of the following statements correctly describes the situation and measures taken by Gujarat in response to the Chandipura virus (CHPV) outbreak?
- What percentage of the corporate bond limit has been utilized by FPIs as of now?
When was the India–EU Ideathon on “Combating Marine Plastic Litter” launched?
According to the information provided by the Ministry of Finance, GST collections rose 12 per cent to over __________ in June.
Recently Prime Minister launched a global initiative “ LiFE ” movement. What does “E” stand for?
Which company has collaborated with ServiceNow, a leading digital workflow company, to launch its Live Operations platform, aimed at enhancing custo...
In Indian Premier League 2022 who has been awarded the Orange cap?
- What is the origin of the name “nachi” in Channa nachi?