Skip to content

Glossary: Computer Vision Basics

pos_weight

An option of `BCEWithLogitsLoss` that multiplies the loss on positive (rare) examples. Setting it to undamaged ÷ damaged photos, about 7.6 on the original 240 photos, makes the damaged photos count as much in total as the rest.

Where the book teaches it

Related terms

class imbalanceBCEWithLogitsLossWeightedRandomSampler