EleMi: Elastic Net Regularized Multi-Regression
Project description
EleMi
Elastic net regularized multi-regression (https://link.springer.com/chapter/10.1007/978-3-031-57515-0_13)
EleMi is used to infer soil ecological networks using abundance data.
Usage
EleMi takes as input an abundance matrix shaped like n × p where n is the number of samples and p is the number of taxa. You can find an example dataset in example_data/otu.csv.
from EleMi import EleMi, row_clr, col_normalize
import pandas as pd
data = pd.read_csv("example_data/otu.csv", index_col=0)
data = data.astype(float).values
data = row_clr(data)
data = col_normalize(data)
A = EleMi(data, 0.1, 0.01)
A = (A + A.T) / 2
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elemi-0.1.0.tar.gz.
File metadata
- Download URL: elemi-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb5600ba635f2351fe4dab8cd7bd3b803768490550bada6c8b4d1f02c7a53e9
|
|
| MD5 |
0b9be6ebff554fc58bacb6b0206a1a95
|
|
| BLAKE2b-256 |
c7d002d811a03e7c34551f2b836419375b48dca9fe31d37d4665e3b86249092e
|
File details
Details for the file elemi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: elemi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c97d952ba0c22b18aaa3e87c1f6695e00b31ee9f725b3e1c314fbbfb3952a9d2
|
|
| MD5 |
0c3e5d3058fc00f8bb8540103b107d99
|
|
| BLAKE2b-256 |
4300609a8a7951ce3b55376c80a0d357358fde320c24b915724efc45e8d9987c
|