Macro-micro-average: in average categories or average samples
Calculates the various aggregation indicators from a confused count to identify the denominators of the blank projection categories.
Learning objectives and first steps2 objectives . 1 first fix
Try to do it after reading
- Calculation of different polymer indicators from confusion count
- The denominator agreement to identify the blank projection category
Suggested first
- Classification and probabilities projections
A high accuracy rate could cover up the whole small category
In multi-category or group evaluations, macro-averages first calculate the weighting of the various indicators and then the mini-averages are combined before the indicators are counted, and weighting by volume of support is another rule. They correspond to different target units, none of which is always right. It is important to know how much influence each category or sample has in the final figures.
Examples of the broad category of total projections
The synthesis test set consists of 90 A, 10 B, and all models predict A. The overall accuracy was 0.9. A class recall 1, B class recall zero, so the macro recall averaged 0.5; Recalls weighted by the actual sample size of the category were 0.9. Micro average accuracy and recall are also 0.9 under single labels, common settings where all categories are included. A class 90/100 = 0.9 and B class does not have any projections and the accuracy denominator is zero. If this is clearly zeroed, the macro average accuracy is 0.45; The result would be different if the rule of ignoring undefined items were adopted. This difference must be configured so that the two default set indicators cannot be considered directly as model gaps.
The average order changes the result
Macro F1 usually calculates F1 per class first, and then averages, and does not equal the reconciliation of macro accuracy with macro recall. Non-linear aggregations cannot be exchanged at will. For multi-labelling tasks, the same sample could be in multiple categories at the same time, and the simple equivalent between the micro-average and the accuracy rate was no longer automatically established.
How do you choose a caliber
If each category deserves equal attention, the macro level highlights the failure of the subcategory; If the goal is an average real request, the issue is closer to one by sample distribution. Business may also have different cost or materiality weights, which need to be defined differently and not be seen directly as evidence of equity.
Data and comparative boundaries
Changes in class pools, missing categories and rejection samples affect denominators. The label space should be fixed, each type of support should be maintained and the matrix confused, and a summary should be reported. It is often difficult to judge whether an increase comes from a small category of improvement or from a change in the proportion of categories. The proportion of real events drifts over time to allow for minor average changes, while the various conditions remain unchanged; The macro average may ignore the cost of the flow. It would be better to compare the same target distribution and clear weights, while displaying key categories, avoiding a high overall accuracy rate that would mask a completely unserved group.
Self-measurement and provocator
This example has an accuracy of 0.9, why is the recall only 0.5?
(a) Recalls for large categories 1 and 0, with an average of 0.5; The accuracy rate is dominated by 90 broad categories of samples.
Can macro F1 be recalculated directly with macro precision and macro?
Usually not. Standard macro F1 is the average per class F1 and non-linear calculations cannot be exchanged on average.
Sources and reconciliations
Definitions, methods and interfaces are available.
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.