experiments/different_sketch_sizes_time_bar_plots.py [621:669]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@click.command()
@click.argument("dataset_name")
@click.option(
    "-k", "--is-kernel", type=bool, help="kernel version",
)
@click.option(
    "-h", "--use-heuristic", type=bool, help="use heuristic for increasing momentum",
)
@click.option(
    "-r", "--regularizer", type=float, help="regularizer",
)
@click.option(
    "-t", "--tolerance", type=float, help="tolerance to reach",
)
@click.option(
    "-m",
    "--max-iter",
    default=1000,
    type=int,
    help="maximum number of iteration per run",
)
@click.option(
    "-n", "--n-repetitions", default=1, type=int, help="number of runs per setting",
)
def momentum_regimes(
    dataset_name,
    is_kernel,
    use_heuristic,
    regularizer,
    tolerance,
    max_iter,
    n_repetitions,
):
    # Experiment settings
    save = True

    print(f"DATASET: {dataset_name}")

    # Problem settings
    if dataset_name == "boston":
        dataset = BostonDataset()
    elif dataset_name == "cali":
        dataset = CaliforniaHousingDataset()
    elif dataset_name == "year":
        dataset = YearPredictionDataset()
    elif dataset_name == "rcv1":
        dataset = Rcv1Dataset()

    X, y = dataset.load_X_y()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



experiments/momentum_regimes.py [641:689]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@click.command()
@click.argument("dataset_name")
@click.option(
    "-k", "--is-kernel", type=bool, help="kernel version",
)
@click.option(
    "-h", "--use-heuristic", type=bool, help="use heuristic for increasing momentum",
)
@click.option(
    "-r", "--regularizer", type=float, help="regularizer",
)
@click.option(
    "-t", "--tolerance", type=float, help="tolerance to reach",
)
@click.option(
    "-m",
    "--max-iter",
    default=1000,
    type=int,
    help="maximum number of iteration per run",
)
@click.option(
    "-n", "--n-repetitions", default=1, type=int, help="number of runs per setting",
)
def momentum_regimes(
    dataset_name,
    is_kernel,
    use_heuristic,
    regularizer,
    tolerance,
    max_iter,
    n_repetitions,
):
    # Experiment settings
    save = True

    print(f"DATASET: {dataset_name}")

    # Problem settings
    if dataset_name == "boston":
        dataset = BostonDataset()
    elif dataset_name == "cali":
        dataset = CaliforniaHousingDataset()
    elif dataset_name == "year":
        dataset = YearPredictionDataset()
    elif dataset_name == "rcv1":
        dataset = Rcv1Dataset()

    X, y = dataset.load_X_y()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



