BAPE: Learning an Explicit Bayes Classifier for Long-tailed Visual Recognition