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.
Chief Judicial Magistrate may pass a_______.
What can be the modes of disbursement for the withheld price of the produce supplied by a Member of a producer Company as per the Companies Act?
When was the Life Insurance Corporation Act, 1956 enacted?Â
Under BNS, which of the following qualifies as “organised crime”?
Computer software can be included under the definition of goods was held under which of the following cases?
Under the IRDA Act, 1999, the Insurance Regulatory and Development Authority of India (IRDAI) is composed of how many members, including the Chairperson...
What is oral evidence?
What is the consideration in a contract of guarantee?
What is a contingent contract?
A man is said to commit rape on a woman if he has sexual intercourse with her with or without her consent, if her age is below years