
Answer-first summary for fast verification
Answer: Create an embedding column
One-hot encoding presents two main challenges: high dimensionality, which increases computational time, especially with a large number of categories, and the lack of encoded relationships between categories, making them appear entirely independent. An embedding column addresses these issues by representing each category with a smaller vector of weights (e.g., 5 values), where each value acts as a feature of the category. This allows the neural network to recognize similarities between categories based on their embedding vectors. Reference: [Cloud Academy](https://cloudacademy.com/google/introduction-to-google-cloud-machine-learning-engine-course/a-wide-and-deep-model.html)
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.