def pred_threshold_field(result_sorted, pred_threshold_name):
    """ Generate prediction threshold field (for classification)
    Parameters
    ----------
    result_sorted : list[dict]
        list of results sorted by rowId
    pred_threshold_name : str
        column name which should contain prediction threshold
    Returns
    -------
    header: list[str]
    row_generator: iterator
    """

    return [pred_threshold_name], (
        [row.get('predictionThreshold')]
        for row in result_sorted
    )