surojit_sengupta:

how is the final avg/total figure high?
How is this calculated?


It seems the last and best performing class is the majority class. The average for the current metric was apparently calculated using the micro-average, i.e. by aggregating the contributions of all classes to compute the average metric.
E.g. if you have two (imbalanced) classes and would like to calculate the sensitivity (TPR), you could just add all samples (TP, P) for both classes and calculate the metric. For the macro-average you would calculate the metric independently for both classes and then take the mean:
Class0 - TPR: 9999/10000=0.9999
Class1 - TPR: 0/1=0.0
micro-average TPR: (9999+0)/(10000+1)=0.9998
macro-average TPR: (0.9999+0.0)/2=0.49995