GSD
Installation | Documentation | Cite us
Reference implementation of generalised score distribution in python
This library provides a reference implementation of gsd probabilities for correctness and efficient implementation of samples and log_probabilities in jax.
Citations
Theoretical derivation of GSD is described in the following papers.
@Article{Cmiel2023,
author={{\'{C}}miel, Bogdan
and Nawa{\l}a, Jakub
and Janowski, Lucjan
and Rusek, Krzysztof},
title={Generalised score distribution: underdispersed continuation of the beta-binomial distribution},
journal={Statistical Papers},
year={2023},
month={Feb},
day={09},
issn={1613-9798},
doi={10.1007/s00362-023-01398-0},
url={https://doi.org/10.1007/s00362-023-01398-0}
}
@ARTICLE{gsdnawala,
author={Nawała, Jakub and Janowski, Lucjan and Ćmiel, Bogdan and Rusek, Krzysztof and Pérez, Pablo},
journal={IEEE Transactions on Multimedia},
title={Generalized Score Distribution: A Two-Parameter Discrete Distribution Accurately Describing Responses From Quality of Experience Subjective Experiments},
year={2022},
volume={},
number={},
pages={1-15},
doi={10.1109/TMM.2022.3205444}
}
If you decide to apply the concepts presented or base on the provided code, please do refer our related paper.
Installation
You can install gsd via pip:
pip install ref_gsd
Note that you install ref_gsd but import gsd e.g.
import gsd
gsd.fit_moments([2, 8, 2, 0, 0.])
Development
To develop and modify gsd, you need to install
hatch, a tool for Python packaging and
dependency management.
To enter a virtual environment for testing or debugging, you can run:
hatch shell
Running tests
Gsd uses unitest for testing. To run the tests, use the following command:
hatch run test
Standalone estimator
You can quickly estimate GSD parameters from a command line interface
python3 -m gsd -c 1 2 3 4 5
psi=3.6667 rho=0.6000
Acknowledgments
Development of this software has received funding from the Norwegian Financial Mechanism 2014-2021 under project- 2019/34/H/ST6/00599.
Metadata
Release files for ref-gsd 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ref_gsd-0.2.3.tar.gz | 62.7 kB | Without provenance | Details for ref_gsd-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ref_gsd-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for ref_gsd-0.2.3-py3-none-any.whl |
Total release size: 83.7 kB
Release files / ref_gsd-0.2.3.tar.gz
| Download URL | ref_gsd-0.2.3.tar.gz |
|---|---|
| Size | 62.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7449c7f9c73073b03e22ef414f3b4368412d5564b0a6f606d1c670f7306293fa
|
|
BLAKE2b-256 checksum How to use checksums |
744f98b5edaa05358ccd57e943c50ca23298898f369bb4da1c7a377ddbfdf930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / ref_gsd-0.2.3-py3-none-any.whl
| Download URL | ref_gsd-0.2.3-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa69268e0243176693d6c8883a5e936c38714f5b23f6fb5ce15dbbb02b3328ec
|
|
BLAKE2b-256 checksum How to use checksums |
8906e1762f27715d4b324e8ef96a763664e197b7ebf7486ac40f99e5cbc927db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for ref-gsd 0.2.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.