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 average weight of 16 people in a group is 75 kg. If the heaviest person who weighs 95 kg is replaced by a new person, and the average weight of the ...
The average cost of three chairs is Rs.10000. The average cost decrease by 12% when one more chair is included. What is the cost price of the 4th
Sonali applied for a job of Science teacher in a school. In the test for job, she scored 8 in Physics, 8 in Chemistry, 6 in Biology, and 6.5 in the inte...
Average 20 numbers is ‘x’. If the average of first 12 numbers is 62.5 while average of last 5 numbers is 74.8 and 13th, 14th a...
The average number of books on Biology, Chemistry, and Physics in a book shop is 300. Biology books are 150 more than the average number of Chemistry an...
Consider three positive numbers that form a ratio of 2:3:4. If the sum of the squares of these numbers is 2349, what is the average of the largest and t...
The average of n numbers is 62. If each of 55% of the numbers is increased by 18 and each of the remaining numbers is decreased by 12, then the n...
Average age of company A is 24 years and average age of both companies A and B is 12 years. If the ratio of number of employees in company A and B is 3:...
The average of 19 numbers is 15.The average of first 9 numbers are12 and that of the last 9 numbers are15. What will be the 19th number?
In a class of ‘x’ students, if a new student weighing 32 kg joins the class, then the average weight of the class increases by 1 kg. If the ...