I'm trying to write this code into colab. Interestingly, I was running the same code in colab a few days agobut now it doesn't work. the code also works in kaggle kernel. Why do you think this error occurs?
I tried using np.array and tf.convert_to_tensor() for the model's input and also changed the version of tensorflow and tensorflow-hub but none worked.
This is the colab notebook if you needed more info. Thanks in advance!
the code for short is using this class:
`class DisasterDetector:
I'm trying to write this code into colab. Interestingly, I was running the same code in colab a few days agobut now it doesn't work. the code also works in kaggle kernel. Why do you think this error occurs?
I tried using np.array and tf.convert_to_tensor() for the model's input and also changed the version of tensorflow and tensorflow-hub but none worked. This is the colab notebook if you needed more info. Thanks in advance!
the code for short is using this class: `class DisasterDetector:
And after defining it:
classifier = DisasterDetector(tokenizer = tokenizer, bert_layer = bert_layer, max_len = max_len, lr = 0.0001, epochs = 10, activation = 'sigmoid', batch_size = 32,optimizer = 'SGD', beta_1=0.9, beta_2=0.999, epsilon=1e-07)
when I want to train it:
classifier.train(train_cleaned)
I get this error:
ValueError Traceback (most recent call last)