Probability estimation with machine learning methods for dichotomous and multicategory outcome: Theory | Synapse