01Chapter 1: Why aggregate scores are not enoughThis chapter assumes that you have trained and evaluated an NLP classifier or sequence tagger at least once. You should know the difference between training, validation, and test data, and understand accuracy, precision, recall, and F1.2 min read
02Chapter 2: Choosing metrics and setting a baselineAssume you know Python, pandas, NumPy, and the meaning of train, validation, and test splits. You should also know the basic definitions of accuracy, precision, recall, and F1. This chapter focuses on choosing among them for an NLP task and creating a comparison point before improving a model.2 min read
03Chapter 3: Reading confusion matrices and per-class metricsAssume you know basic Python, pandas, NumPy, accuracy, precision, recall, F1, and train/validation/test splits. This chapter uses a multiclass text classifier, but the same ideas apply to binary classification.2 min read
04Chapter 4: Collecting errors into an inspectable tableThis chapter assumes you know basic Python, pandas, NumPy, accuracy, precision, recall, and F1. It also assumes you have trained and evaluated an NLP classifier at least once. The goal is to turn model outputs into a table that you can inspect, filter, sort, and share.2 min read
05Chapter 5: Building an error taxonomy by handAssume you can train and evaluate an NLP model, read a pandas table, and interpret precision, recall, and F1. This chapter focuses on what to do after you have collected incorrect predictions. The goal is to turn a list of mistakes into a small, useful set of error categories.2 min read
06Chapter 6: Slicing results by text propertiesAssume you know Python, pandas, NumPy, and basic evaluation metrics such as accuracy, precision, recall, and F1. A slice is a subset of evaluation examples selected by a property, such as text length, language, product area, or the presence of a negation word.2 min read
07Chapter 7: Telling real slice gaps from noiseAssume you know Python, pandas, NumPy, accuracy, precision, recall, and F1. This chapter assumes you already have predictions on a held-out test set. A slice is a subgroup of examples defined by a property, such as text length, language, product type, or presence of negation.2 min read
08Chapter 8: Spotting label noise and ambiguous annotationsThis chapter assumes that you have trained and evaluated an NLP classifier or sequence tagger. You should also know accuracy, precision, recall, F1, pandas, and train, validation, and test splits.2 min read
09Chapter 9: Checking confidence and calibrationAssume you know basic Python, NumPy, and the precision, recall, and F1 metrics. You also know how a text classifier produces predictions on a held-out test set.2 min read
10Chapter 10: Error types in sequence labelingAssume you know basic Python and have trained a sequence-labeling model at least once. You should also understand train, validation, and test splits, plus precision, recall, and F1. This chapter uses named entity recognition as an example, but the same ideas apply to part-of-speech tagging, slot fil2 min read
11Chapter 11: Errors from distribution shiftAssume you know how to train and evaluate a text classifier, use pandas and NumPy, and read accuracy, precision, recall, and F1. This chapter focuses on errors caused by a difference between the data used for evaluation and the data encountered after release.2 min read
12Chapter 12: Behavioral tests with input perturbationsThis chapter assumes that you can run a trained NLP classifier, understand train, validation, and test splits, and use basic Python. It also assumes that you know accuracy, precision, recall, and F1.2 min read
13Chapter 13: Using attribution to inspect single errorsAssume you already know how to evaluate a classifier and collect misclassified examples. This chapter focuses on one question: which parts of an input influenced a particular prediction? Attribution is a way to estimate each token's contribution to a model output. It helps you inspect an error, 2 min read
14Chapter 14: Ranking error categories and choosing fixesAssume you have trained an NLP classifier or sequence tagger, can use Python with pandas, and understand accuracy, precision, recall, and F1. You also have a fixed test set that was not used during training.2 min read