dianna.utils.predict ==================== .. py:module:: dianna.utils.predict .. autoapi-nested-parse:: Utility functions for perturbation based predictions. Functions --------- .. autoapisummary:: dianna.utils.predict.make_predictions Module Contents --------------- .. py:function:: make_predictions(data, runner, batch_size) Make predictions with the input data. Process the data with the model runner and return the predictions. :param data: An array of masked input data to be processed by the model. :type data: np.ndarray :param runner: An object that runs the model on the input data and returns predictions. :type runner: object :param batch_size: The number of masked inputs to process in each batch. :type batch_size: int :returns: An array of predictions made by the model on the input data. :rtype: np.ndarray