QuestionQ33

VerifiedModel Development

An organization is building a feature repository and plans to one-hot encode every categorical feature variable. A data scientist recommends that the categorical feature variables not be one-hot encoded in the feature repository.

Which explanation supports this recommendation?

Explanation

One-hot encoding is a common, target-independent way to represent nominal categorical data, but the appropriate encoding depends on the downstream machine learning algorithm and feature characteristics. Applying it universally in a shared feature repository can force an unsuitable representation on models that need another encoding strategy. Microsoft’s ML.NET guidance identifies one-hot encoding as a best fit when categories have no implicit order and also documents hashing as another categorical encoding approach.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!