The capability
What are datasets and evaluation?
If you've written normal software, you already know how to check that a function works. You call it with an input, and you compare what comes back to the answer you expected. Evaluation is the same idea, just for an AI component. The difference is that a model can handle one input well and then get a nearly identical one wrong, so checking a few inputs by hand doesn't tell you much about the rest.
So what you do is build a dataset, where each test case is one input plus the correct answer, and it's a person who decides what that answer is. Evaluation then means running your system on every test case, counting how many it got right and looking at the ones it got wrong.
Now you might be asking what that gives you over trying a few inputs yourself. Well, it turns every change you make into a number you can compare. If you change the prompt or switch to a cheaper model, you run the same dataset again and see whether the score went up and which test cases went from passing to failing. Without a dataset, all you've got is the few inputs you happened to try, and a fix for one input can break another without anyone noticing.
A dataset can only tell you about the inputs you put in it, though. If it's missing the kind of input your system fails on, the score looks fine while real users keep running into the failure, which is why most of this module is about what goes into the dataset.
Where it shows up
You'll need this pretty much anywhere people rely on what a model gives back. A classifier that routes support tickets needs a dataset of real tickets with the right queue for each one. A model that pulls fields out of invoices needs invoices where someone filled in the correct fields by hand. Chatbots and agents need one too, although grading an open-ended answer is harder, and the end of this module covers how teams do it. Every later module in this course comes back to it, because it's how you find out whether a change helped.
Keep reading
The rest of this lesson is free with an account
Create a free account to read the remaining 14 sections. It takes about twenty seconds and there's nothing to pay. The same account opens the slide decks and CV reviews.
- 02A detector that looked done
- 03The ground-truth dataset
- 04Accuracy hides the miss that matters
- 05The dataset you iterate on also catches regressions
- 06The loop: run, read the failures, fix, run again
- and 9 more
That's the last one written so far
Pick your next module from the board.
