SoftMax

Search IconIcon to open search

Source: google-ml-course

SoftMax

Options

  • Full SoftMax (brute force): a probability is calculated for every single class
    • Cheap for small number of classes
  • Candidate sampling: calculates probability for all positive labels but only for a random sample of negative labels
    • e.g. calculating a probability for terrier, german_shepherd but not for all of non-dog classes: cat, coat, tree, etc.
    • Possibly more efficient for greater number of classes