Skip to main content

ParamComparison

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

Basic Usage

The basic usage is simple:

import paramcomparison
from paramcomparison.writers import RstWriter
from paramcomparison.readers import UserFunctionReader

# f can be any custom function. It can be a function which reads a data file, or computes on the
# fly.
def f(params, data):
    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.

There are more examples available in the doc/examples folder.

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.

Metadata

Release files for ParamComparison 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ParamComparison 0.2.2
File Size Uploaded Provenance
ParamComparison-0.2.2.tar.gz 23.0 kB Without provenance Details

Release files / ParamComparison-0.2.2.tar.gz

Download URL ParamComparison-0.2.2.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2eeb07354ddd6cf68eeac6cc8105a6864616ed357ceb39ea6e7b6a60877b1dd0
BLAKE2b-256 checksum
How to use checksums
636bfa15cca30b55b6147e9e86fbe0734869db18ebea44eb34bd75234da3bc42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ParamComparison 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page