Get the re-processed output of the supplied model on a set of supplied test data.
Args:
model (LinearModel): Model to test on `test_data`
test_data (2-tuple/list): Tuple or list of the 'features' and their corresponding 'labels'.
distances (ndarray): List of luminosity distance measurements for the input events. If None, results will not be scaled by luminosity distance. Note that this scaling is applied after the data is converted with y_transform_fn.
n_batches (int, optional): Number of batches to process the input data in. Defaults to 1 (the entire dataset).
device (string, optional): Device to attach the input model to, if it is not attached already.
y_transform_fn (function, optional): If the labels/ydata have been pre-processed with a function (e.g. log),