Python API¶
Here is a list of Python functions available to construct a new benchmark with
benchopt
:
List of base classes:¶
|
Base class to define an objective function |
|
Base class to define a dataset in a benchmark. |
|
A base class for solver wrappers in BenchOpt. |
Benchopt run hooks¶
skip()
: hook to allow skipping some configurations.
Also available for Dataset
and Objective
.
get_next()
: hook to change the sampling points for
a given solver.
pre_run_hook()
: hook called before each call to
run
, with the same argument. Allows to skip certain computation that
cannot be cached globally, such as precompilation with different number of
iterations in for jitted jax
functions.
Benchopt utils¶
|
Run full benchmark. |
Context used to manage import in benchmarks. |
|
|
Plot convergence curve and bar chart for a given benchmark. |
Generate a linear regression with decaying correlation for the design matrix \(\rho^{|i-j|}\). |
|
|
Decorator to tell line profiler which function to profile. |