Parameter Comparison Table Generator
Project description
ParamComparison is a Python package which can generate a series of tables to display results of different parameter combinations. It is useful when trying different parameters to see how good the results are.
Install
To install, run:
python setup.py install
Or use pip:
pip install ParamComparison
Usage
The basic usage is simple:
import paramcomparison from paramcomparison.writers import RstWriter from paramcomparison.readers import UserFunctionReader def f(params, data): # or other functions to compute the result return params['a'] + params['b'] + params['c'] + params['d'] param_space = {'a': [1,2], 'b': [3,4], 'c':[5,6], 'd': [7,8]} pc = paramcomparison.ParamComparison(param_space, UserFunctionReader(f, None)) pc.generate_pages('output', RstWriter(), 'a', 'b')
The directory output will contain some rst files which contains generated tables. You can use Sphinx, Nikola or other tools to further convert them into HTML, PDF and other formats.
Source Code
The source code is available on GitHub.
Bug Report and Contribution
Please submit bug reports to the issue tracker. To contribute, please make a pull request on GitHub.
License
Copyright (c) 2015 Hong Xu <hong@topbug.net>
ParamComparison is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
ParamComparison is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with ParamComparison. If not, see <http://www.gnu.org/licenses/>.
You can view the full text of the license in LICENSE.txt. You can also view GNU General Public License version 3 in GPL.txt.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ParamComparison-0.2.0.tar.gz
.
File metadata
- Download URL: ParamComparison-0.2.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e3d33cd5096774b9f6fa14c9389a95ad30f154f82aa1628d003af257102dea |
|
MD5 | 1c4a8463d385004b178b9fb3fe635e83 |
|
BLAKE2b-256 | 5f5263cd6f86f8b2945d81ba5661572d85b1d2f2d2e001e6e7b0a4b777418092 |