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.
Where is the 'Startup 20 Shikhar' summit being organized under the G20 chairmanship of India?
Recently which bank has join hands with PFRDA to launch a digital platform which will allow customers to open NPS accounts using mobile phones?
Which country is India’s largest supplier of crude oil, surpassing China?
What is the key feature of the revamped ‘Baanknet’ e-auction portal launched by the DFS Secretary?
What was the theme of World Development Information Day 2021?
- Madhya Pradesh now has how many tiger reserves including Madhav National Park?
What is the objective of the three MoUs signed by the Khadi and Village Industries Commission (KVIC) with the Ministry of Micro, Small and Medium Enterp...
Where was the 2025 Laureus World Sports Awards ceremony held?
How many of the following statement/statements is/are correct regarding the ‘Ungalai Thedi, Ungal Ooril’ scheme in Tamil Nadu?
1. The scheme ...
SEBI has reconstituted its alternative investment policy advisory committee, which advises the capital markets regulator on a range of issues that impac...