def topDownCompute(self, encoded):
if self.ncategories==<NUM_LIT:0>:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>topDownMappingM = self._getTopDownMapping()<EOL>categoryIndex = topDownMappingM.rightVecProd(encoded).argmax()<EOL>category = self.categories[categoryIndex]<EOL>encoding = topDownMappingM.getRow(categoryIndex)<EOL>return EncoderResult(value=category, scalar=categoryIndex, encoding=encoding)<EOL>
See the function description in base.py