F1Score & Performance Metrics

Hello, I am using an ImageDataLoaders to create a model with fastai and want to report the f-score, per-class precision and recall, and AUC. Have only successfully been able to retriever error rate. The error I am hitting with F-score is TypeError: unsupported operand type(s) for *: ‘AccumMetric’ and ‘int’



Thank you Manikandan!

Do you know if theres a way to specify multiple metrics for it to produce? Or can I only do one at a time?

You may need to specify multiple metrics in a list
metrics=[accuracy, F1score()]