Skip to content

API function for merge #914

@DamienLesens

Description

@DamienLesens

The API provides a function for running a benchmark and plotting some results, but not for merging multiple result files.
Right now in my script I'm using the function from the CLI with something like

from benchopt import run_benchmark
from benchopt.plotting import plot_benchmark
from benchopt.benchmark import Benchmark
from benchopt.cli.process_results import merge
from pathlib import Path

benchmark_path = '.'
benchmark = Benchmark(benchmark_path,no_cache=False)

exp_name = "my_exp"

#running some benchmarks, generating output_file_list

merge.callback(benchmark_path,filenames=output_file_list,output=exp_name)

plot_benchmark(
    fname=Path("outputs/"+exp_name+".parquet"),
    benchmark=benchmark,
)

I would be good to have an API function that returns the Path object of the merged results

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions