Closed PetervanLunteren closed 10 months ago
I'm waiting to get a quick review from @BWBrook on the pull request, but the code changes look good to me. Will merge this pull request once it gets another thumbs up. :)
I'm going to merge this pull request, I think Barry is out for a little bit longer. If there are problems we can always roll back.
For training species classifiers it is often important to know how well the model performs on certain species, as opposed to only knowing the overall accuracy. This PR includes an new function into
lib_model.py
that is called frommewc_train.py
and evaluates each class and prints a classification report like the one below.It additionally saves a visual representation of a normalised confusion matrix. This provides insight into misclassifications and can help ecologists to group certain species together. It will adjust font size according to the number of classes present, and with few classes it will also print its cell value.