One-vs-Rest and One-vs-One Models