You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After training the torchMoji model on the SemEval emotion dataset, I got the following error during the evaluation to measure F1:
/torchMoji-master/torchmoji/finetuning.py in find_f1_threshold(model, val_gen, test_gen, average)
178 f1_scores = []
179
--> 180 model.eval()
181 val_out = [(y, model(X)) for X, y in val_gen]
182 y_val, y_pred_val = (list(t) for t in zip(*val_out))
AttributeError: 'numpy.ndarray' object has no attribute 'eval'
Please help me to resolve this error.
The text was updated successfully, but these errors were encountered:
After training the torchMoji model on the SemEval emotion dataset, I got the following error during the evaluation to measure F1:
/torchMoji-master/torchmoji/finetuning.py in find_f1_threshold(model, val_gen, test_gen, average)
178 f1_scores = []
179
--> 180 model.eval()
181 val_out = [(y, model(X)) for X, y in val_gen]
182 y_val, y_pred_val = (list(t) for t in zip(*val_out))
AttributeError: 'numpy.ndarray' object has no attribute 'eval'
Please help me to resolve this error.
The text was updated successfully, but these errors were encountered: