glimix-core
Fast inference over mean and covariance parameters for Generalised Linear Mixed Models.
It implements the mathematical tricks of FaST-LMM for the special case of Linear Mixed Models with a linear covariance matrix and provides an interface to perform inference over millions of covariates in seconds. The Generalised Linear Mixed Model inference is implemented via Expectation Propagation and also makes use of several mathematical tricks to handle large data sets with thousands of samples and millions of covariates.
Install
Via pip:
pip install glimix-core
Usage
Here it is a very simple example to get you started:
>>> from numpy import array, ones
>>> from numpy_sugar.linalg import economic_qs_linear
>>> from glimix_core.lmm import LMM
>>>
>>> X = array([[1, 2], [3, -1], [1.1, 0.5], [0.5, -0.4]], float)
>>> QS = economic_qs_linear(X, False)
>>> X = ones((4, 1))
>>> y = array([-1, 2, 0.3, 0.5])
>>> lmm = LMM(y, X, QS)
>>> lmm.fit(verbose=False)
>>> lmm.lml()
-2.2726234086180557
We also provide an extensive documentation about the library.
Authors
License
This project is licensed under the MIT License.
Metadata
Release files for glimix-core 3.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| glimix_core-3.1.14.tar.gz | 97.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| glimix_core-3.1.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 197.7 kB
Release files / glimix_core-3.1.14.tar.gz
| Download URL | glimix_core-3.1.14.tar.gz |
|---|---|
| Size | 97.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb6d93804899459b7e252e02915f925e4150ca4d95c60ef31e4252e7479602d4
|
|
BLAKE2b-256 checksum How to use checksums |
ba6e3425c9bf81cf5623612b9ead3ebcb6650b6579358baabab8c2e4a920fcb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.18
|
Release files / glimix_core-3.1.14-py3-none-any.whl
| Download URL | glimix_core-3.1.14-py3-none-any.whl |
|---|---|
| Size | 100.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3202c6fe5e4d392aa9a349844a8e4d5bc24f8ebeafebb23bde403d6e3a8cdcb
|
|
BLAKE2b-256 checksum How to use checksums |
a891fa76fef42d3cfb54405d68535d342fe1437ae2e0530fe28eb399ca27e192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.18
|