import click


def sparsification_options(f):
    """Create common options for sparsification"""
    f = click.option('--n_sparse', '-n', type=int,
                     help='number of the representative samples, set negative if using no sparsification',
                     show_default=True, default=100)(f)
    f = click.option('--sparse_mode', '-s',
                     type=click.Choice(['random', 'cur', 'fps', 'sequential'], case_sensitive=False),
                     help='Sparsification method to use.',
                     show_default=True, default='fps')(f)
    return f