hmu.ai
Back to AI Dictionary
AI Dictionary

Embedding

Definition

A mapping of a discrete, categorical variable to a vector of continuous numbers.

Deep Dive

An embedding in machine learning is a low-dimensional, continuous vector representation of a discrete, categorical variable, such as a word, user ID, or product item. Instead of using one-hot encodings which can be sparse and high-dimensional, embeddings transform these discrete entities into a dense vector space where similar items are mapped to nearby points. This transformation is not arbitrary; the position and relationships between vectors in the embedding space are learned during the training process to capture meaningful semantic or functional relationships between the original categorical variables.

Examples & Use Cases

  • 1Word embeddings (e.g., Word2Vec) where similar words like "king" and "queen" have vectors close to each other
  • 2Item embeddings in a recommendation system where similar products (e.g., "coffee" and "espresso machine") are represented by similar vectors
  • 3User embeddings that capture user preferences, allowing models to suggest relevant content or products

Related Terms

Vector Space ModelFeature EngineeringNeural Networks

Part of the hmu.ai extensive business and technology library.