Optimizing Generalized Rate Metrics through Game Equilibrium