From margins to probabilities in multiclass learning problems