Skip to main content

A Python package providing sampling methods via matrix-based distance measures to mitigate autocorrelation

Project description

SAMBA - Sampling Algorithms with Matrix-Based Weight Allocation

SAMBA is a Python package providing sampling methods via matrix-based distance measures to mitigate autocorrelation.

Installation and Usage

The package can be installed via pip:

$ pip install samba_sampler

Detailed information on the usage of the package can be found in the documentation. For a quick start, the following example shows how to use the package:

import samba_sampler as samba
sampler = samba.LanguageSampler() # Default parameters
print(sampler.sample(5))

Changelog

Version 0.3.1 (2023-07-17)

  • Added first version of the walking distance matrix derived from Guzman Naranjo & Jäger (2023).

Version 0.3 (2023-07-13)

  • Initial release, following on the arcaverborum project.

Community Guidelines

While the author can be contacted directly for support, it is recommended that third parties use GitHub standard features, such as issues and pull requests, to contribute, report problems, or seek support.

Contributing guidelines, including a code of conduct, can be found in the CONTRIBUTING.md file.

Author, Citation, and Acknowledgements

The library is developed by Tiago Tresoldi (tiago@tresoldi.org).

The library is developed in the context of the Cultural Evolution of Texts project, with funding from the Riksbankens Jubileumsfond (grant agreement ID: MXM19-1087:1).

If you use samba_sampler, please cite it as:

Tresoldi, Tiago (2023). SAMBA (Sampling Algorithms with Matrix-Based Weight Allocation): a Python package providing sampling methods via matrix-based distance measures to mitigate autocorrelation. Version 0.3. Uppsala: Uppsala University.

In BibTeX:

@misc{Tresoldi2023samba,
  author = {Tresoldi, Tiago},
  title = {SAMBA (Sampling Algorithms with Matrix-Based Weight Allocation): a Python package providing sampling methods via matrix-based distance measures to mitigate autocorrelation. Version 0.3.},
  howpublished = {\url{https://github.com/tresoldi/samba_sampler}},
  address = {Uppsala},
  published = {Upssala University},
  year = {2023}
}

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

samba_sampler-0.3.1.tar.gz (122.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

samba_sampler-0.3.1-py3-none-any.whl (122.0 MB view details)

Uploaded Python 3

File details

Details for the file samba_sampler-0.3.1.tar.gz.

File metadata

  • Download URL: samba_sampler-0.3.1.tar.gz
  • Upload date:
  • Size: 122.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for samba_sampler-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6ea438c6835e10086dd219024dfc7f4296c3778c43e3e0b4c1675fb866e64be6
MD5 02595f1681179dadefcaf07cd9bcf59b
BLAKE2b-256 fe1a093b00c08445ba0d9ef75bdf7ddaa361c0b8a4ae4753da923bc8072656d2

See more details on using hashes here.

File details

Details for the file samba_sampler-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: samba_sampler-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 122.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for samba_sampler-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1e198420d51be0a182aaf8ffd694363babd5f3e28c308d0681ac71e02e8ffd
MD5 183d43a4ce2981268803e2e964eff4d7
BLAKE2b-256 be1864f2972151e1edbac0de85f9d7bfc47bf5b292756e03786c9ac22994f143

See more details on using hashes here.

Supported by

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