Elastic Net for Structural Equation Models (SEM)
Anhui Huang | Ph.D. Electrical and Computer Engineering
https://scholar.google.com/citations?user=WhDMZEIAAAAJ&hl=en
Summary
Provides elastic net penalized maximum likelihood for structural equation models (SEM). The package implements
lasso and elastic net (l1/l2) penalized SEM and
estimates the model parameters with an efficient block coordinate ascent algorithm that maximizes the penalized
likelihood of the SEM. Hyperparameters are inferred from cross-validation (CV). A Stability Selection (STS) function
is also available to provide accurate causal effect selection.
The experimental study and vignettes are also available in the doc/ folder in the package.
PyPI installation
sparseSEM is available on PyPI: https://pypi.org/project/sparseSEM/. Run command pip install sparseSEM to install
from PyPI.
test/ folder contains examples using data packed along with this package in data/ folder.
To run test/ examples, clone this repo, and run from test/ directory.
Configuration
This package was originally developed to leverage high performance computer clusters to enable parallel computation through openMPI. Users who have access to large scale computational resources can explore the functionality and checkout the openMPI module in this package.
Current package utilizes blas/lapack for high speed computation. To build the C/C++ code, the intel OneMKL library is specified in the package setup.
- Install the free OneMKL package (https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2023-0/intel-oneapi-math-kernel-library-onemkl.html)
- Check if your package is the same as in the setup.py file ('/opt/intel/oneapi/mkl/2023.1.0/include'). Update the file accordingly if it was installed in a different path.
Release Note
- V2.0: add more output information include CV results, hyperparameter, and details of model fit. V2.0 is a major release with stability selection added.
- V1: initial release with corresponding to R package v2.
Package for other platforms
R package
An R package for sparseSEM is also available at CRAN: https://cran.r-project.org/web/packages/sparseSEM/index.html
OpenMPI
C/C++ implementation of sparseSEM with openMPI for parallel computation is available in openMPI branch (https://github.com/anhuihng/pySparseSEM/tree/openMPI).
Network Inference Example
The following network was a Yeast Gene Regulatory Network (GRN) inferred by sparseSEM.
Fig.1 Sparse budding yeast GRN inferred by
sparseSEM
Fig.2 Budding yeast gene interaction pattern with link edges identified by
sparseSEM
Network visualized via circos and cytoscope packages. See openMPI/readme.md as well as doc/* for more details.
Reference
- Huang A. (2014) Sparse Model Learning for Inferring Genotype and Phenotype Associations. Ph.D Dissertation,
University of Miami, Coral Gables, FL, USA.
- Huang A. (2014) sparseSEM: Sparse-Aware Maximum Likelihood for Structural Equation Models. Rpackage
(https://cran.r-project.org/web/packages/sparseSEM/index.html)
Metadata
Release files for sparseSEM 2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sparseSEM-2.1.tar.gz | 5.9 MB | Without provenance | Details for sparseSEM-2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sparseSEM-2.1-cp310-cp310-macosx_10_9_x86_64.whl | CPython 3.10 | CPython 3.10 | macOS 10.9+ x86-64 | Details for sparseSEM-2.1-cp310-cp310-macosx_10_9_x86_64.whl |
Total release size: 6.0 MB
Release files / sparseSEM-2.1.tar.gz
| Download URL | sparseSEM-2.1.tar.gz |
|---|---|
| Size | 5.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9fdc272b72069b69814ebdd7450296342c919accbeb6269eda37b1134b485b4
|
|
BLAKE2b-256 checksum How to use checksums |
f040663a718c54bfbffd201b56b1536a6bf30795912a49e5e6d77a8c3c6d1f01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / sparseSEM-2.1-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | sparseSEM-2.1-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 109.5 kB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
8353ec36c05e76c864a63c157b99f2b86ae2dee56423282f8024e5a3b66f5952
|
|
BLAKE2b-256 checksum How to use checksums |
e43126b46723e17c3d34d964c9b9af1c5017d71711911bb71d2f2992f16a1003
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for sparseSEM 2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.