Skip to content

Glossary: NLP with Transformers

Class weights

Also written: class_weight, weighted loss

Multipliers on the loss that make rare labels count more. Wholesale messages get a weight of 2.35 because they are only about 10% of Priya's training data.

Where the book teaches it

Related terms

Macro F1