def submit_only_kwargs(kwargs):
    """Strip out kwargs that are not used in submit"""
    kwargs = kwargs.copy()
    for key in ['patience', 'min_freq', 'max_freq', 'validation',
                "max_epochs", "epoch_boost", "train_size", "valid_size"]:
        _ =  kwargs.pop(key, None)
    return kwargs