Use y_type == 'binary' for short check
Use type_of_target in preprocessing