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.
Under AI Pragya, how many youth are to be trained in AI, ML, and data technologies?
Where did Buddha deliver his first sermon?
In December 2021, who has been appointed the brand ambassador of Uttarakhand?
SoftBank has sold 2 percent of its shares in One97 Communications, the parent firm of Paytm.After the latest sale, SoftBank’s stake in the company is ...
What does the 'Sangam: Digital Twin' initiative by the Department of Telecommunications (DoT) aim to achieve?
What is a key objective of the India-Chile Comprehensive Economic Partnership Agreement (CEPA)?
Which Indian leader died due to injuries sustained during the Anti-Simon Commission protests of 1928?
Who will chair the RBI’s 10-member ’Expert Committee on Benchmarking of its Statistics'?
Where was the 40th National Youth Basketball Championships held?
Italy won its third consecutive Davis Cup title in 2025 by defeating which country in the final?