Skip to content
ml-recall

#label-encoding

1 question from Data & Features

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

easyAI-checkedData & Features

A categorical feature color takes the values red, green and blue. With label encoding (red = 1, green = 2, blue = 3) the distance between red and blue is twice that between red and green. With one-hot encoding instead, what is the Euclidean distance between the vectors of any two different colors? Give 3 decimals.

a number, 3 decimals