Skip to main content

Reference implementation of generalised score distribution in python

Project description

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

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

ref_gsd-0.2.3.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

ref_gsd-0.2.3-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file ref_gsd-0.2.3.tar.gz.

File metadata

  • Download URL: ref_gsd-0.2.3.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for ref_gsd-0.2.3.tar.gz
Algorithm Hash digest
SHA256 7449c7f9c73073b03e22ef414f3b4368412d5564b0a6f606d1c670f7306293fa
MD5 1be7292006b358e3572d423159dac893
BLAKE2b-256 744f98b5edaa05358ccd57e943c50ca23298898f369bb4da1c7a377ddbfdf930

See more details on using hashes here.

File details

Details for the file ref_gsd-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: ref_gsd-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for ref_gsd-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa69268e0243176693d6c8883a5e936c38714f5b23f6fb5ce15dbbb02b3328ec
MD5 2684969cfaf506ab025a5fa169aafaf7
BLAKE2b-256 8906e1762f27715d4b324e8ef96a763664e197b7ebf7486ac40f99e5cbc927db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page