TypeError: ‘numpy.bool_’ object is not iterable when working with SetFit and Optuna
I am trying to train a few shot text classifier using SetFit and Optuna. When I run my code, I get the error TypeError: ‘numpy.bool_’ object is not iterable when working with SetFit and Optuna.
I don’t understand where the error comes from, as I am not using numpy at all.