jesse-tong commited on
Commit
6e7f214
·
1 Parent(s): c7c168c
Files changed (1) hide show
  1. inference_lstm.py +3 -0
inference_lstm.py CHANGED
@@ -117,6 +117,9 @@ if __name__ == "__main__":
117
 
118
  batch_count += 1
119
 
 
 
 
120
  # Print classification report
121
  # Calculate accuracy, F1 score, recall, and precision
122
  accuracy = metrics.accuracy_score(all_labels, all_predictions)
 
117
 
118
  batch_count += 1
119
 
120
+ # Flatten the predictions and labels
121
+ all_labels = all_labels.flatten()
122
+ all_predictions = all_predictions.flatten()
123
  # Print classification report
124
  # Calculate accuracy, F1 score, recall, and precision
125
  accuracy = metrics.accuracy_score(all_labels, all_predictions)