An implementation of the CORCONDIA (Core Consistency Diagnostic) in Python.
Project description
pycorcondia
CORCONDIA (Core Consistency Diagnostic) implementation in Python. It uses Tensorly with the Numpy backend.
Installation
pip install -U corcondia
Usage
Currently, the only implemented function is corcondia_3d
, which calculates the Core Consistency Diagnostic (CORCONDIA) for a 3D tensor. Additional arguments will be forwarded to the tensorly.decomposition.parafac
call.
An example on a random tensor is shown below.
import numpy as np
from corcondia import corcondia_3d
X = np.random.rand(5, 5, 5)
print(corcondia_3d(X, k=3))
References
This is based off of the original MATLAB implementation by Evangelos (Vagelis) Papalexakis:
@inproceedings{inproceedings,
author = {Papalexakis, Evangelos and Faloutsos, Christos},
year = {2015},
month = {04},
pages = {5441-5445},
title = {Fast efficient and scalable Core Consistency Diagnostic for the parafac decomposition for big sparse tensors},
doi = {10.1109/ICASSP.2015.7179011}
}
CORCONDA was first introduced by Bro and Kiers (2003) here.
Thanks to Alessandro Bessi for his initial implementation here, which led to the creation of this repo.
Also, thanks to Yorgos Tsitsikas for his valuable feedback and suggestions.
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
Hashes for corcondia-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f957df11afd490761c6f9f9ae403bfbe0c4831aaa90d65e78c866f9112e9237 |
|
MD5 | 1bddad4d5e4ae839b521812d09ca74c9 |
|
BLAKE2b-256 | 1fadfc373ec61c22923050f6a089e1b1c18ee891406a82341844465196ebb7ef |