Lab: Train the ticket network and explore embeddings
Module 4 · Lab · About 60 minutes · Needs: lessons 1 to 3 (the training loop, embeddings, TicketNet and the DataLoader); no model key neededWhat you are building
Module 4 adds two things to BrightCart: a small neural network that sorts tickets, and a tool for looking around the embedding space. This lab assembles the lessons' pieces, trains the network properly, and puts a number next to Module 3's scikit-learn classifier on the same 8 held-out tickets. Then it builds explore(text), a function Priya can hand any ticket to and get back the category the network thinks, the nearest tickets already answered, and the nearest help articles. It ends with two saved files, ticket_net.pt and brightcart_embeddings.npz, that reload in a fresh session and give the same answers. The split is lesson 1's, the network lesson 3's and the vectors lesson 2's; every number is printed.