<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def classify(self, encoding, num=1):
 """ Classify with basic one-hot local incoding """

    probDist = numpy.exp(encoding) / numpy.sum(numpy.exp(encoding))
    sortIdx = numpy.argsort(probDist)
    return sortIdx[-num:].tolist()