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.
According to the Economic Survey 2024-25, which two emerging sectors in India are providing enhanced opportunities for job creation, in alignment with t...
Consider the following statements about the recent legislation passed in Tajikistan:
1. The legislation bans the hijab and other Islamic garments...
South Africa's Trusted Tour Operator Scheme (TTOS) aims to increase tourism from which two countries?
Which National Park in India is home to a rare dwarf goat breed called "kanchu mekha" locally?Â
Which company has launched an ALT ID solution for guest checkout for each card to replace the real card numbers provided by cardholders during online tr...
Who among the following won the ‘3rd Rabindranath Tagore Literary Prize’ for his novel ‘The City and The Sea’ in December 2020?
What is the expected growth rate of India’s economy in 2025 according to the UN’s World Economic Situation and Prospects report?
- What penalty will be applied under VAHAN rules for toll payment violations in the hybrid toll system?
How many total medals did India win at the Asian Yogasana Sport Championship 2025?
What penalty amount was imposed on Motiram Agrawal Jalna Merchants Co-operative Bank by the RBI?