predict top n classes for each grant