liveBook · Manning

Discrimination

As explained in Deep Learning with PyTorch, Second Edition

The ability of a model to separate two classes from each other.

Discrimination is a model’s ability to separate two classes. For nodule detection, it means distinguishing actual nodules from normal anatomical structures—the central goal of training. section 14.4.1

Training data should give the model a fair chance to learn that separation:

  • Balance positive and negative samples instead of presenting long runs of negatives. section 14.4.1
  • Mix both labels within batches so their competing signals can guide learning. section 14.4.1
  • Repeat scarce positive samples when the dataset contains only a small fixed number of them. section 14.4.1
  • Treat dataset bias as a separate risk: uncorrected real-world biases can persist in the trained model. section 14.4.1

Balanced LUNA training

A training application can expose a --balanced option, pass a ratio setting to LunaDataset, and alternate positive and negative candidates while reusing positive samples as needed.

How Deep Learning with PyTorch, Second Edition covers it

How deep it goes
Defines class separation and connects it to balanced sampling, but stops short of formal metrics or model internals.
Examples
Uses LUNA nodule candidates, balanced batches, sampling code, and a professor’s deliberately skewed exam as examples.
What it assumes
Assumes labeled positive and negative candidates while teaching why scarce positives and mixed batches matter.
What you can do after
Operate/configure balanced training by enabling --balanced and sampling positive and negative candidates in a controlled ratio.
How it connects
Connects discrimination with class balance, batch composition, dataset preparation, and training-data bias.

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with PyTorch, Second Edition. The section links point to the parts of the book it draws on.