_type != 'binary': raise ValueError( 'Only binary classification is supported. The type of the target ' f'is {{y_type}}.' ) r^