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 (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.tar.gz (79.6 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-py3-none-any.whl (79.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samba_sampler-0.3.tar.gz
  • Upload date:
  • Size: 79.6 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.tar.gz
Algorithm Hash digest
SHA256 1987053b81be290f0fe8a989eec29361989a8960bc55ddb0ce54a47fe21ec8d8
MD5 36e003caf0ccaffcd8ab05d431b73ca9
BLAKE2b-256 1147333c64d52907e1b1c6dc9be778e606524a7f10156a6c2a749b1ec07bf91b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: samba_sampler-0.3-py3-none-any.whl
  • Upload date:
  • Size: 79.6 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-py3-none-any.whl
Algorithm Hash digest
SHA256 4f7bf31c0ad70a9e26bab7c6abcabc0c8c826687f68fa51a567a440f47066368
MD5 b6277edb744888418dc296da36806f7e
BLAKE2b-256 ba7e98e3e08681f05c074654180add26cd413553e7662fe3af1293aa1f15284b

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