liveBook · Manning

Label

As explained in Data Analysis with LLMs

A class label is a category designation assigned to an instance in a classification task.

A class label names the category assigned to an instance in a classification task. For a movie review, labels might be positive or negative; other tasks may use categories such as Work or Offensive. section 4.2

A ground-truth label records the correct category for an instance. Comparing predicted labels with ground truth helps assess classification quality. section 4.2.6 section 9.2

Table 4.1 Extracts from movie reviews and associated class labels
Review Class
First of all this movie is a piece of reality very well realized artistically. ... Positive
Re-titled “Gangs, Inc.”, this is an obviously weak, cheap mobster melodrama. ... Negative

Movie-review excerpts paired with positive and negative class labels. section 4.2

How Data Analysis with LLMs covers it

How deep it goes
Defines labels as categories and shows how ground truth supports checking predictions, without detailing how to design a label scheme.
Examples
Uses positive and negative movie reviews, email categories, and offensive or inoffensive comments.
What you can do after
Evaluate generated classifications by comparing predicted labels with ground-truth sentiment labels.
How it connects
Connects class labels to text classification, sentiment analysis, and ground truth.

Also explained in

Compare how 20 books explain label →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Analysis with LLMs. The section links point to the parts of the book it draws on.