Skip to main content

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.

Norway grants

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)

Source distribution for ref-gsd 0.2.3
File Size Uploaded
ref_gsd-0.2.3.tar.gz 62.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ref-gsd 0.2.3
File Interpreter ABI Platform
ref_gsd-0.2.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

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