A training feature represents one of four unordered device types. A linear model should not interpret those types as ordered distances. Which representation is suitable?

Published
  1. A single constant shared by every category
  2. The alphabetical position of each type treated as a regression target
  3. Integers from one to four treated as a continuous measurement
  4. One-hot encoding of device categories

Comments — 0