Tool for estimating growth rates
Project description
About
This module provides a CLI tool for rough approximations according to a catalog of prescribed growth rates.
The tool currently features most well-known classes of growth rates and works by fitting each generic growth rate function to the given data.
Its primary use case is estimating time or space growth rates of various algorithms, but it can also be used on data coming from physical measurements.
Install
To install from pypi:
pip3 install --user matchgrowth
Usage
The CLI tool expects --infile with a valid CSV file path, and --col1 and --col2 each with a column name
present in the CSV file. Currently the CSV file needs to have headers for all columns, in the first row.
The --top parameter allows to limit the number of matched growth rates reported.
The --outfile parameter is optional and allows to write the generated plot to a PNG file on disk.
If the --outfile parameter is not passed, the default GUI from matplotlib will be used to display the plot.
usage: match-growth.py [-h] --infile INFILE [--outfile OUTFILE] --col1 COL1
--col2 COL2 [--top TOP] [--catalog CATALOG] [--debug]
[--plot PLOT_TYPE]
Tool for estimating growth rates
optional arguments:
-h, --help show this help message and exit
--infile INFILE CSV input file with measurements
--outfile OUTFILE PNG file to write the plot to
--col1 COL1 data column 1 from the CSV
--col2 COL2 data column 2 from the CSV
--top TOP only print top N closest growth rates
--catalog CATALOG select the function catalog to use
--debug enable debug mode
--plot PLOT_TYPE plot type (normal|loglog)
Example usage:
match-growth.py --infile ./tests/modif7_bench.txt --outfile r1.png --col1 N --col2 memory --top 2
In this example we're estimating the closest growth rate for an algorithm that has a single input N and for which we've
already recorded the memory usage for different values of N.
Support
For questions or requests for paid support, please send an e-mail to business@garage-coding.com
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matchgrowth-0.0.9.tar.gz.
File metadata
- Download URL: matchgrowth-0.0.9.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7a7c35e25290fbc13116b09d469eb5d5db28544f31de5924b3cb71dba5247fe
|
|
| MD5 |
d53c00818cef95508a257017aa546b35
|
|
| BLAKE2b-256 |
22d3f6f9cf2387241d0b42701c70912359e4fe58e8daf1e93543fc4df3d90519
|
File details
Details for the file matchgrowth-0.0.9-py3-none-any.whl.
File metadata
- Download URL: matchgrowth-0.0.9-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb2080c4f7a3bf5244965adad23b93136ee04c76ab2810d8b440f69d2283ab07
|
|
| MD5 |
5aad0a7d32252b7e33cc6ca962e471ae
|
|
| BLAKE2b-256 |
ed039cad1f5cd648cb7c0d57c06b80065c70ffa0ffd4494598317b7942652a06
|