Skip to main content

Fast inference over mean and covariance parameters for Generalised Linear Mixed Models

Project description

glimix-core

Documentation

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.

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

glimix_core-3.1.14.tar.gz (97.0 kB view details)

Uploaded Source

Built Distribution

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

glimix_core-3.1.14-py3-none-any.whl (100.7 kB view details)

Uploaded Python 3

File details

Details for the file glimix_core-3.1.14.tar.gz.

File metadata

  • Download URL: glimix_core-3.1.14.tar.gz
  • Upload date:
  • Size: 97.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.18

File hashes

Hashes for glimix_core-3.1.14.tar.gz
Algorithm Hash digest
SHA256 cb6d93804899459b7e252e02915f925e4150ca4d95c60ef31e4252e7479602d4
MD5 39be8b22c678fde25948952fe7c8e714
BLAKE2b-256 ba6e3425c9bf81cf5623612b9ead3ebcb6650b6579358baabab8c2e4a920fcb8

See more details on using hashes here.

File details

Details for the file glimix_core-3.1.14-py3-none-any.whl.

File metadata

File hashes

Hashes for glimix_core-3.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 a3202c6fe5e4d392aa9a349844a8e4d5bc24f8ebeafebb23bde403d6e3a8cdcb
MD5 bb0196ff07cd6e095dccf7f9ba72b44e
BLAKE2b-256 a891fa76fef42d3cfb54405d68535d342fe1437ae2e0530fe28eb399ca27e192

See more details on using hashes here.

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