Build contrasts for models defined with formulaic
Project description
formulaic-contrasts
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:
- Install the latest release of
formulaic-contrastsfrom PyPI:
pip install formulaic-contrasts
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a575a810bf1fba28938259d86a3ae2ae90cb9826fca84b9409085170862f701
|
|
| MD5 |
1a1c1bf1bcfb8d6dcf4d7018de269844
|
|
| BLAKE2b-256 |
28e64850976c248746062cfaa08628b3ec5ba3dfcab3d6ecd0d3886c36c04681
|
Provenance
The following attestation bundles were made for formulaic_contrasts-1.0.0.tar.gz:
Publisher:
release.yaml on scverse/formulaic-contrasts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
formulaic_contrasts-1.0.0.tar.gz -
Subject digest:
0a575a810bf1fba28938259d86a3ae2ae90cb9826fca84b9409085170862f701 - Sigstore transparency entry: 155449951
- Sigstore integration time:
-
Permalink:
scverse/formulaic-contrasts@ceebb5c0fcfe3c72c7de736577d7e6a17162b019 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/scverse
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ceebb5c0fcfe3c72c7de736577d7e6a17162b019 -
Trigger Event:
release
-
Statement type:
File details
Details for the file formulaic_contrasts-1.0.0-py3-none-any.whl.
File metadata
- Download URL: formulaic_contrasts-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1220d315cf446bdec9385375ca4da43896e4ba68114ebea1b2a37efa5d097f5
|
|
| MD5 |
14ee6a2aa88a70fd3b355ff862cfd333
|
|
| BLAKE2b-256 |
407b639411281256c84e8111bf6cb9676c44dbf5d8ad4cb042f4359b7e7b9e74
|
Provenance
The following attestation bundles were made for formulaic_contrasts-1.0.0-py3-none-any.whl:
Publisher:
release.yaml on scverse/formulaic-contrasts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
formulaic_contrasts-1.0.0-py3-none-any.whl -
Subject digest:
e1220d315cf446bdec9385375ca4da43896e4ba68114ebea1b2a37efa5d097f5 - Sigstore transparency entry: 155449952
- Sigstore integration time:
-
Permalink:
scverse/formulaic-contrasts@ceebb5c0fcfe3c72c7de736577d7e6a17162b019 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/scverse
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ceebb5c0fcfe3c72c7de736577d7e6a17162b019 -
Trigger Event:
release
-
Statement type: