asahi417 commited on
Commit
cf0381f
1 Parent(s): 1afe5f0

Update lm_finetuning.py

Browse files
Files changed (1) hide show
  1. lm_finetuning.py +1 -0
lm_finetuning.py CHANGED
@@ -63,6 +63,7 @@ def get_metrics():
63
  print(logits)
64
  predictions = np.argmax(logits, axis=-1)
65
  print(predictions)
 
66
  return metric_f1.compute(predictions=predictions, references=labels, average='micro')
67
 
68
  def compute_metric_all(eval_pred):
 
63
  print(logits)
64
  predictions = np.argmax(logits, axis=-1)
65
  print(predictions)
66
+ print(labels.shape, logits.shape, predictions.shape)
67
  return metric_f1.compute(predictions=predictions, references=labels, average='micro')
68
 
69
  def compute_metric_all(eval_pred):