def _process_results(self, inference_result):
        """Interpret the output from a single inference of the neural network and filter out results with
        probabilities under the probability threshold.

        :param inference_result: the array of floats returned from the NCAPI as float32
        :return results: a list of 2-element sublists containing the detected digit as a string and the associated
        probability as a float

        """
        results = []
        # Get a list of inference_result indexes sorted from highest to lowest probability
        sorted_indexes = (-inference_result[0]).argsort()
        results.append([sorted_indexes[0], inference_result[0][sorted_indexes[0]]])
        
        return results
Interpret the output from a single inference of the neural network and filter out results with
        probabilities under the probability threshold.

        :param inference_result: the array of floats returned from the NCAPI as float32
        :return results: a list of 2-element sublists containing the detected digit as a string and the associated
        probability as a float

        
apps/mnist_calc/mnist_processor.py