Runs python script in argument combinations and produces dataset of all results.
Project description
args_to_db - Data Generation Tool for Argument Optimisation
pip install args_to_db
You want to analyze a (python) script for different arguments/settings? - Argument optimization is becoming more and more important in many application areas. args_to_db is an attempt to generalize and simplify the process of running a programm in different modes or configurations and combining the resulting datasets to allow for further analysis.
When should I use args_to_db?
You have a programm which is highly dependent on parameters and arguments, for example a solver framework for linear system of equations. Different inputs vary performance of solving methods dramatically. So we want to optimize the solver and preonditioner used for a specific linear system of equations.
This is performed once and results in preferences which are then to be used automatically by the programm. args_to_db simplifies the process of argument variation and dataset generation.
How to use args_to_db?
commands = arg('python3') + arg('solver.py') + \
option('--solver', ['cg', 'jacobi']) + \
option('--preconditioner', ['gs', 'spai']) + \
flag('--log', vary=False)
run(commands, threads=4)
How to report results?
The parameters on which we want to optimize need to be logged and combined later on. args_to_db makes this very easy.
add_result('solver_time', 20.3)
add_result('solver_state', 'converged')
write_results(__file__, args)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for args_to_db-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 028862ec9bf93bd932b557d371b3f6e44c89e7fc43931d43be8e086764b47130 |
|
MD5 | b401808918685eac8457394832de631e |
|
BLAKE2b-256 | 49bae6c07aaf66a56e5a83a6f1becbf19d27e5cef23e3c5d70e3b8031c74b1ce |