writing labels as ints (note this is special-cased for multiclass classification and not regression