def get_temp_result(initial_out, final_out):
    """
    Takes NN outputs before and after removal to compute absolute fractional differences
    :param initial_out:
    :param final_out:
    :return:
    """
    # initially most confident class
    initial_class_scores, predicted_class = initial_out.max(1)
    # same value after modification
    final_class_scores = final_out.index_select(1, predicted_class).max(0)[0]
    # absolute fractional difference of raw results
    tmp_result = abs(final_class_scores - initial_class_scores) / initial_class_scores

    return tmp_result