'Calculate the posterior log probability of the samples X'

def _joint_log_likelihood(self, X):

    check_is_fitted(self, 'classes_')
    X = check_array(X, accept_sparse='csr')
    return (safe_sparse_dot(X, self.feature_log_prob_.T) + self.class_log_prior_)
