Skip to main content

Pure-Python inferential analysis

Project description

Inferential Analysis

The book "Validity, Reliability, and Significance: Empirical Methods for NLP and Data Science", written by Stefan Riezler and Michael Hagmann, uses the inferential analysis module found at https://github.com/StatNLP/empirical_methods to conduct inferential reproducibility analyses.

The aim of this project is to offer functionality similar to that of the original inferential_analysis module, but without depending on R and lme4.

Installation

The library can be found on PyPI.

# pip
pip install inferential-analysis

# uv
uv add inferential-analysis

Usage Examples

The usage examples are based on this Jupyter notebook and can be found in the examples directory of the repository.

Limitations

Reliability

The current library does not allow analyzing per-example variance components (see issue #4). In case that is required, you can fall back to R and lme4 like so:

library(lme4)
data <- read.csv("evaluation_data/aghajanyan_cnn-all.csv")
model <- lmer(
  rouge_2 ~ 1 + (1|seed) + (1|distribution) + (1|lambda) + (1|summary_id),
  data = data[data$system == "SOTA",]
)
summary(model)

Additional Information

License

In accordance with the original implementation this library is licensed under the Apache 2.0 license.

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

inferential_analysis-2.0.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

inferential_analysis-2.0.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file inferential_analysis-2.0.0.tar.gz.

File metadata

  • Download URL: inferential_analysis-2.0.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inferential_analysis-2.0.0.tar.gz
Algorithm Hash digest
SHA256 bf3380c12f82975dd89de04bb288229166824ebac0a76549a97d097ccf5f5efc
MD5 053288934ac8e5123b770e238c3d334e
BLAKE2b-256 7f1b6db6210780f83e81fefa775b67ed9d5ce8cfc2685e239eae6f574aab1ae5

See more details on using hashes here.

Provenance

The following attestation bundles were made for inferential_analysis-2.0.0.tar.gz:

Publisher: ci.yml on lkarp-744/inferential-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inferential_analysis-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inferential_analysis-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f14c20caf62b7ba9934303852d1b625c9fb0830aaf16b65db3da16be36e66c06
MD5 bb5155b67c56e7d8ff64e412dbfc50c2
BLAKE2b-256 9a505fc31b366d3992e5fc4e4c3a4c18d63b24a7b9dc251951c6ffc570c52498

See more details on using hashes here.

Provenance

The following attestation bundles were made for inferential_analysis-2.0.0-py3-none-any.whl:

Publisher: ci.yml on lkarp-744/inferential-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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