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-0.2.0.tar.gz (123.0 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-0.2.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: formulaic_contrasts-0.2.0.tar.gz
  • Upload date:
  • Size: 123.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for formulaic_contrasts-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b383f5de28d35df9af915a76fb04d428867a9972c712170019b911ea2bc39511
MD5 c2077a3a9ab35f8e3ef73b7d5b04bdbd
BLAKE2b-256 df90e3ac5212e2b3133fe6e155b2abfab975f5d31a3486eaea3a4441bec48e6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for formulaic_contrasts-0.2.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-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for formulaic_contrasts-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd3019f329ff02f08a7f326c5851dc6f84f097aed3f2753aaf3564271c3044c
MD5 79a47db493df7ba7998c010955725de3
BLAKE2b-256 33a3c213ea6d8ec13d59a4dbf840958b41c1749db019c4c87ce2933163be4d36

See more details on using hashes here.

Provenance

The following attestation bundles were made for formulaic_contrasts-0.2.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