hello this is how I defined my computer metric but what type of format is supported ?
Can I print a classification report ? :
def compute_metrics(pred):
labels = pred.label_ids
preds = pred.predictions.argmax(-1)
precision, recall, f1, _ = precision_recall_fscore_support(labels, preds)
precision_ma, recall_ma, f1_ma, _ = precision_recall_fscore_support(labels, preds, average=‘macro’)
precision_mi, recall_mi, f1_mi, _ = precision_recall_fscore_support(labels, preds, average=‘micro’)
acc = accuracy_score(labels, preds)
return {
‘accuracy’: acc,
‘f1’: f1,
‘precision’: precision,
‘recall’: recall,
	'f1_mi': f1_mi,
	'precision_mi': precision_mi,
	'recall_mi': recall_mi,
	

	'f1_ma': f1_ma,
	'precision_ma': precision_ma,
	'recall_ma': recall_ma
}

I wanted to get the micro and macro precision since I am doing multiclassification.