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.
In the given figure, two identical circles of radius 4 cm touch each other. A and B are the centres of the two circles. If RQ is a tangent to the circle...
In a given Figure, ON ⼠QR and MN ⼠OR.
One chord of a circle is given as 21.5 cm. Then the radius (r) of the circle must be:
- If two circles of radii 'R' and 'r' cm intersect each other externally at one point, then which of the following is true?
If in a ÎABC, D is a point on BC such that BD = 2 cm , BC = 6 cm then what is ratio of area of ÎABD to area of ÎADC ?
In ÎABC, PQ is parallel to BC If AP: PB= 2:5 and AQ= 2 cm, AC is equal to?
The measure of an angle is one-third of its supplementary angle. Find its measure.
The length of the each side of an equilateral triangle is 28â3. The area of incircle, (cm 2 ) is
What will be inradius of an equilateral triangle of side 10 cm?
In âABC, AD = DB , DE is parallel to BC, and the area of âABC is 20 cm2. What is the area of âADE in cm2 ?