pyMFDR
publication: Matrix Factorization Based Dimensionality Reduction Algorithms - A Comparative Study on Spectroscopic Profiling Data. Analytical Chemistry, 2022, DOI: 10.1021/acs.analchem.2c01922
This is a python package for MF (matrix factorization) based DR (dimensionality reduction) algorithms.
Content of repo ├── src : source code ├── data : contains the dataset (.csv) used for the study └── notebooks : contains the jupyter notebook for the study
Installation
pip install pyMFDR
How to use
Download the sample dataset from the /data folder Use the following sample code to use the package:
# import the library
from pyMFDR import mfdr
# load the dataset or generate a toy dataset by X,y = mvg(md = 2)
df = pd.read_csv('7047_C02.csv')
X = df.iloc[:,2:cols-1].values # -1 for removing the last column that contains NAN
y = df.iloc[:,1].values.ravel() # first col is index and not used in this study
# get a list of available MFDR algorithms
mfdr.get_algorithms() # it will ouptut ['PCA', 'NMF', 'LAE', 'RP', 'SRP', 'VQ', 'AA', 'ICA']
# Run PCA on X. It will return W, H, Xr and the inner algorithm object.
W,H,Xr,o = mfdr.mf(X, 3, alg = 'PCA', display = False)
# evaluate the dimensionality reduction quality by various metrics
mfdr.evaluate_dr(X,W,Xr)
# visualize H
mfdr.visualize_dictionary(H)
Metadata
Release files for pyMFDR 0.1.5
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 | |
|---|---|---|---|---|
| pymfdr-0.1.5.tar.gz | 21.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyMFDR-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.4 kB
Release files / pymfdr-0.1.5.tar.gz
| Download URL | pymfdr-0.1.5.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae4302cf0e06c64e9c172fbb120f0d68393e58d6eabfddc31a697c603c1d0f73
|
|
BLAKE2b-256 checksum How to use checksums |
39b8cff5761ef6d9b1b50a33886a9cbf3efe1669d4a5b3b4207b65fb04907c88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / pyMFDR-0.1.5-py3-none-any.whl
| Download URL | pyMFDR-0.1.5-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58f837fe58c2263a77499a27cde86305e22de85b831bf03830d150940e0511c8
|
|
BLAKE2b-256 checksum How to use checksums |
6607fae5c82068a636c007332db2909455a75189baea5ae9cf225980e35bf586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for pyMFDR 0.1.5
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.