def validate_input(predictions, records, line_ids=None):
    """Validate the input features
    """
    for k in predictions:
        if predictions[k].shape[0] != len(records):
            raise Exception(
                'number of records does not match number the prediction rows for prediction %s.'
                 % str(k))
    if line_ids is not None:
        if line_ids.shape[0] != len(records):
            raise Exception(
                'number of line_ids does not match number of VCF records')
