Loss / Optimizer Pairs
Each loss function has a canonical optimizer and a predefined hyperparameter search space. Mismatched pairs will raise an error at startup.
|
|
Key hyperparameters |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Choosing a Pair
Use this guide to select the right loss for your task:
AUROC maximization — use
AUCMLoss+PESG(most common for imbalanced binary classification)AUPRC / AP maximization — use
APLoss+SOAPOne-way partial AUC (restrict FPR) — use
pAUCLosswithmode: 1w+SOPAsTwo-way partial AUC (restrict both FPR and TPR) — use
pAUCLosswithmode: 2w+SOTAsRanking (NDCG) — use
NDCGLoss+SONGBaseline — use
CrossEntropyLoss+SGDorAdam
See also
See Recipes for ready-to-use config files for each pair.