need your support...I am following one tutorial and trying to run on my dataset. I am getting below error ...Pls consider me a beginner so I would appreciate if you can let me know how to fix and what is the reason?
(x_train_bert, y_train_bert), (x_val_bert, y_val_bert), preproc = text.texts_from_array(
x_train=x_train, y_train=y_train,
x_test=x_val, y_test=y_val,
class_names=train_labels.unique(),
preprocess_mode='bert',
lang='en',
maxlen=65,
max_features=35000
)
Error : ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Screenshot of error
I found out that I need to use (np.allclose) I am not sure where to use in my code.....Thanks
Update: New Error after updating the code with the solution provided. New Error after updating code with the solution provided