Metrics call back computes mean metric at batch level and accumulates it .

I dont want to compute it for a batch but for entire Val set . I have need to compute Kappa metrics this way.

How can i do this . Computing kappa score for entire set at the end of epoch rather doing mean at batch level and accumulating each mean for a set.