估计增长率的工具
项目描述
关于
该模块提供了一个 CLI 工具,用于根据规定的增长率目录进行粗略近似。
该工具目前具有最知名的增长率类别, 并通过将每个通用增长率函数拟合到给定数据来工作。
它的主要用例是估计各种算法的时间或空间增长率,但它也可以用于来自物理测量的数据。
安装
从 pypi 安装:
pip3 install --user matchgrowth
用法
CLI 工具需要--infile一个有效的 CSV 文件路径,--col1并且--col2每个路径都有一个列名存在于 CSV 文件中。目前,CSV 文件需要在第一行中包含所有列的标题。
该--top参数允许限制报告的匹配增长率的数量。
该--outfile参数是可选的,允许将生成的绘图写入磁盘上的 PNG 文件。如果--outfile未传递参数,则 matplotlib 中的默认 GUI 将用于显示绘图。
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)
示例用法:
match-growth.py --infile ./tests/modif7_bench.txt --outfile r1.png --col1 N --col2 memory --top 2
在这个例子中,我们正在估计一个算法的最接近增长率,该算法具有单个输入N并且我们已经记录了不同值的内存使用情况N。
支持
有关付费支持的问题或请求,请发送电子邮件至business@garage-coding.com
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
matchgrowth-0.0.9.tar.gz
(5.1 kB
查看哈希)
内置分布
matchgrowth-0.0.9-py3-none-any.whl
(6.4 kB
查看哈希)
关
matchgrowth -0.0.9.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | f7a7c35e25290fbc13116b09d469eb5d5db28544f31de5924b3cb71dba5247fe |
|
| MD5 | d53c00818cef95508a257017aa546b35 |
|
| 布莱克2-256 | 22d3f6f9cf2387241d0b42701c70912359e4fe58e8daf1e93543fc4df3d90519 |
关
matchgrowth -0.0.9-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | cb2080c4f7a3bf5244965adad23b93136ee04c76ab2810d8b440f69d2283ab07 |
|
| MD5 | 5aad0a7d32252b7e33cc6ca962e471ae |
|
| 布莱克2-256 | ed039cad1f5cd648cb7c0d57c06b80065c70ffa0ffd4494598317b7942652a06 |