matzhaugen / pyccista

Graph-based covariance regularization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyccista

This package provides the most basic concord-ista algorithm for computing the concord estimate in python3. The algorithm is based on the paper by Oh, Dalal, Khare and Rajaratnam.

Prerequisite for installing this package is the Eigen linear algebra library in addition to numpy and scipy. In order to install this package, issue the following command:

pip install pyconcord

To test if everything is fine, start python interpreter and execute something like the following:

from concord import concord
import numpy as np

x = np.random.randn(13, 9)
omega = concord(x, 0.3)

print(np.round(omega.todense(),2))

Should work on linux and mac. Not compiled on Windows platforms.

Developing

If you want to run the tests or develop, run:

make develop
pytest -s

** PRs Welcome **

About

Graph-based covariance regularization


Languages

Language:C++ 47.3%Language:C 34.3%Language:Jupyter Notebook 13.7%Language:Python 3.3%Language:Shell 0.8%Language:SWIG 0.4%Language:Makefile 0.3%