API references

API references#

Here is a list of Python functions available to construct a new benchmark with benchopt:

List of base classes:#

BaseObjective(**parameters)

Base class to define an objective function

BaseDataset(**parameters)

Base class to define a dataset in a benchmark.

BaseSolver(**parameters)

A base class for solver wrappers in Benchopt.

See Benchmark class configuration for common configuration options: parameters, dependencies, and lifecycle hooks.

Benchopt utils#

run_benchmark(benchmark_path[, ...])

Run full benchmark.

safe_import_context()

Context used to manage import in benchmarks.

plotting.plot_benchmark(fname, benchmark[, ...])

Plot convergence curve and bar chart for a given benchmark.

datasets.simulated.make_correlated_data([...])

Generate a linear regression with decaying correlation for the design matrix \(\rho^{|i-j|}\).

utils.profile(func)

Decorator to tell line profiler which function to profile.

results.process.merge(result_filenames[, ...])

Merge result files of a benchmark