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
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
I would be good to have an API function that returns the
Pathobject of the merged results