internalsGet Pro

Module 10 · Lesson 5 of 12Pro

Learned embeddings: vectors for words, items and users

Level
Intermediate
Topic
Deep learning architectures
Reading time
18 min

When you finish this page you can

  1. Explain why an embedding layer is a one-hot vector times a weight matrix, done as a row lookup.
  2. Train customer and product vectors from orders in PyTorch, with random products as negatives.
  3. Predict which rows of an embedding table learn well and which learn only part of the way.
  4. Choose between a learned ID table and vectors built from item features, and say when to combine them.
  1. Dot products: measuring how similar vectors are13 min
  2. Clustering with embeddings18 min
  3. Backpropagation: how neural networks learn17 min
  4. Building a neural network in PyTorch14 min

Product 31,207 is not next to 31,208

is our example online store. Its ML team works on a notebook sample: about 1 million orders from 200,000 customers across 50,000 products. Joseph, who leads the growth team, wants a “Picked for you” row: for each customer, the products they are most likely to buy next.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan