Running FitBenchmarking
Once installed, issuing the command
fitbenchmarking
will run the NIST average difficulty problem set on SciPy minmizers.
By default, fitbenchmarking will start a Dash app in order to provide more interactive plots. The Dash app will keep running after fitbenchmarking has finished, unless it is stopped by the user. If the app is stopped, the more interactive plots will not be available.
Running alternative problems
Other problems written in a supported file format
can be analyzed with FitBenchmarking by
passing the path using the -p
or --problem-sets
argument.
Example problems can be downloaded from
Benchmark problems, and they can also be found in the
fitbenchmarking/examples
directory of the code.
For example, to run the NIST low difficulty set from the base directory of the source, type into the terminal:
fitbenchmarking -p examples/benchmark_problems/NIST/low_difficulty
Changing the options
An options file can also be passed with the -o
or --options-file
argument.
For example, the template file can be run by issuing the command
fitbenchmarking -o examples/options_template.ini \
-p examples/benchmark_problems/NIST/low_difficulty
Details about how the options file must be formatted are given in FitBenchmarking Options.
Changing options via the command line
It is possible to change the following options via the command line rather than from an .ini
file or from the default options.
They can be changed using the arguments in the table below.
Option |
Flags |
Actions (string description) |
Help |
---|---|---|---|
Options file |
|
|
The path to a %(prog)s options
file.
|
Problem sets |
|
|
Paths to directories containing
problem sets.
|
Results directory |
|
|
The directory to store resulting
files in.
|
Debug mode |
|
|
Enable debug mode (prints traceback).
|
Number of runs |
|
|
Set the number of runs to average.
|
Algorithm type |
|
|
Select what type of algorithm is
used within a specific software.
|
Software |
|
|
Select the fitting software to benchmark.
|
Jacobian method |
|
|
Set the Jacobian to be used.
|
Cost function type |
|
|
Set the cost functions to be used.
|
Make plots |
|
Use this option if you have decided
to create plots during runtime.
|
|
Don’t make plots |
|
Use this option if you have decided
not to create plots during runtime.
|
|
Open results browser |
|
Use this option if you have decided
to open a browser window to show the
results of a fit benchmark.
|
|
Don’t open results browser |
|
Use this option if you have decided
not to open a browser window to show
the results of a fit benchmark.
|
|
Show progress bar |
|
Use this option if you would like
to see the progress bar during runtime.
|
|
Don’t show progress bar |
|
Use this option if you do not want to
see the progress bar during runtime.
|
|
Comparison mode |
|
|
Select the mode for displaying values
in the resulting table.
|
Table type |
|
|
Select the type of table to be produced
in Fitbenchmarking.
|
Logging file name |
|
|
Specify the file path to write the logs to.
|
Append log |
|
Use this option if you have decided to log
in append mode. If append mode is active,
the log file will be extended with each
subsequent run.
|
|
Overwrite log |
|
Use this option if you have decided not to
log in append mode. If append mode is not
active, the log will be cleared after each
run.
|
|
Level of logging |
|
|
Specify the minimum level of logging to
display on console during runtime.
|
External output |
|
|
Select the amount of information
displayed from third-parties.
|
Runtime metric |
|
|
Set the metric for the runtime.
|
Dash port |
|
Set the port for Dash app.
|
|
Run Dash app |
|
Use this option if you have decided
to run the Dash app.
|
|
Don’t run Dash app |
|
Use this option if you have decided
not to run the Dash app.
|
For example, to change the results directory:
The default directory where the results are saved can be changed using the -r
or --results-dir
argument. The results directory option
can also be changed in the options file.
fitbenchmarking -r new_results/
The default results directory is fitbenchmarking_results
.
Multiple options
For an option for which you wish to make several choices e.g. table_type
, simply use a space to separate your choices:
fitbenchmarking -t acc runtime
If you wish to change several different options, use a space to separate the arguments:
fitbenchmarking -t acc -l WARNING
Help
For more information on changing options via the command line, you can use the -h
or --help
argument.
fitbenchmarking -h