torchMoji icon indicating copy to clipboard operation
torchMoji copied to clipboard

AttributeError: 'numpy.ndarray' object has no attribute 'eval'

Open maryhasan opened this issue 6 years ago • 1 comments

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.

maryhasan avatar Feb 01 '19 02:02 maryhasan

@mhasan1, Can you able to solve this issue?

rezwanh001 avatar Dec 03 '19 11:12 rezwanh001