Skip to main content

Build contrasts for models defined with formulaic

Project description

formulaic-contrasts

Tests Documentation codecov.io

Build arbitrary contrasts for models defined with formulaic.

Getting started

Please refer to the documentation. As a developer seeking to use formulaic-contrasts with your model, you'll find the API documentation and the tutorial Usage in custom model useful. If you are a user who wants to understand how to build contrasts for a model, the building contrasts tutorial is for you!

Installation

Typically, you don't install formulaic-contrasts directly, but obtain it as a dependency of another model. As a developer, you can obtain it from PyPI or GitHub:

There are several alternative options to install formulaic-contrasts:

  1. Install the latest release of formulaic-contrasts from PyPI:
pip install formulaic-contrasts
  1. Install the latest development version:
pip install git+https://github.com/scverse/formulaic-contrasts.git@main

Formulaic-contrasts depends on Python 3.10 or later.

Release notes

See the changelog.

Contact

For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.

Credits

The cond() function for building contrasts has been devised by @const-ae for his R package glmGamPoi. A prototype of the Python implementation has been built at the scverse hackathon in Cambridge, UK in Nov 2023 by @grst, @const-ae and @BorisMuzellec. The production version in this package has been implemented by @grst.

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

formulaic_contrasts-1.0.0.tar.gz (123.8 kB view details)

Uploaded Source

Built Distribution

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

formulaic_contrasts-1.0.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file formulaic_contrasts-1.0.0.tar.gz.

File metadata

  • Download URL: formulaic_contrasts-1.0.0.tar.gz
  • Upload date:
  • Size: 123.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for formulaic_contrasts-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0a575a810bf1fba28938259d86a3ae2ae90cb9826fca84b9409085170862f701
MD5 1a1c1bf1bcfb8d6dcf4d7018de269844
BLAKE2b-256 28e64850976c248746062cfaa08628b3ec5ba3dfcab3d6ecd0d3886c36c04681

See more details on using hashes here.

Provenance

The following attestation bundles were made for formulaic_contrasts-1.0.0.tar.gz:

Publisher: release.yaml on scverse/formulaic-contrasts

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

File details

Details for the file formulaic_contrasts-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for formulaic_contrasts-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1220d315cf446bdec9385375ca4da43896e4ba68114ebea1b2a37efa5d097f5
MD5 14ee6a2aa88a70fd3b355ff862cfd333
BLAKE2b-256 407b639411281256c84e8111bf6cb9676c44dbf5d8ad4cb042f4359b7e7b9e74

See more details on using hashes here.

Provenance

The following attestation bundles were made for formulaic_contrasts-1.0.0-py3-none-any.whl:

Publisher: release.yaml on scverse/formulaic-contrasts

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