Criterions are helpful to train a neural network. Given an input and a target, they compute a gradient according to a given loss function. AbsCriterion and MSECriterion are perfect for regression problems, while ClassNLLCriterion is the criterion of choice when dealing with classification.

Criterions are serializable.

Subsections

  1. Criterion
  2. AbsCriterion
  3. ClassNLLCriterion
  4. MarginCriterion
  5. MSECriterion
  6. MultiCriterion
  7. HingeEmbeddingCriterion
  8. L1HingeEmbeddingCriterion
  9. CosineEmbeddingCriterion
  10. MarginRankingCriterion