ENH use compute_class_weight utility in NB.