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.1.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.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: formulaic_contrasts-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 1c975fdf5bf0fdf485cf4838535c380160f5331e7cccc50c608145a95deaabb7
MD5 66b9ff5fc39fa4510635c3ef5a44742a
BLAKE2b-256 1e3efe8e200fc374afc270908c8bcbada0844949fe9effc6ccd2e12f0b441f56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for formulaic_contrasts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a04bf12d8278c36166c08c79c702f9dd3cd764cbf21b8e99ff1fb5a6785a54fa
MD5 bc075558d8c7c3957822d755a75a0ae8
BLAKE2b-256 1297dd905f85a53002d393ae79f2f140ab85be99b915e21b14cf7ddfd7cce458

See more details on using hashes here.

Provenance

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