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.
The other name of âSwaraj Islandâ is ________.
Which of the following can be the reasons behind the number of earthquakes in Delhi in recent times?
1. Closeness to main boundary thrust faul...
Arrange the following Islands of Andaman and Nicobar from North to South:
1. Little Andaman
2. Car Nicobar
3. South Andaman
...
Match the Following Revolutions to their respective Agricultural Productions:
Revolution Productions
(i). Green Revolution (A) Fertilize...
Consider the following statements with reference to the Peninsular block of India:
1. The Thar Desert is part of the Peninsular block.
2. ...
Shimla, Ranikhet, Lansdowne, Mussoorie are the major hill stations lying in
Arrange the following mountain ranges from North to South.
1. Vindhya Range
2. Ajanta range
3. Satpura range
4. Nal...
The term "Escrow account" generally refers to:
A state in India has the following characteristics:
1. Its northern part is arid and semi-arid.
2. Its central part produces cotton. ...
Consider the following statements:
1. In an antecedent drainage pattern, the river cuts through uplifted portions of land.
2. In a superim...