Non-parametric density estimator.
Project description
Mellon
Mellon is a non-parametric cell-state density estimator based on a nearest-neighbors-distance distribution. It uses a sparse gaussian process to produce a differntiable density function that can be evaluated out of sample.
Installation
To install Mellon using pip you can run:
pip install mellon
or to install using conda you can run:
conda install -c conda-forge mellon
or to install using mamba you can run:
mamba install -c conda-forge mellon
Documentation
Please read the documentation or use this basic tutorial notebook.
Basic Usage
import mellon
import numpy as np
X = np.random.rand(100, 10) # 10-dimensional state representation for 100 cells
Y = np.random.rand(100, 10) # arbitrary test data
model = mellon.DensityEstimator()
log_density_x = model.fit_predict(X)
log_density_y = model.predict(Y)
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 mellon-1.3.0.tar.gz.
File metadata
- Download URL: mellon-1.3.0.tar.gz
- Upload date:
- Size: 56.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b9afb03cfc675166b6aee1d193c13d803febbbf774fb505f5f0ae1a6d8bf86b
|
|
| MD5 |
314595913484b5bba327bcbacc21941f
|
|
| BLAKE2b-256 |
78536beeb032b14d6aa0ab6d21e02a46d7750ffb203a7608721b69eda645e285
|
File details
Details for the file mellon-1.3.0-py3-none-any.whl.
File metadata
- Download URL: mellon-1.3.0-py3-none-any.whl
- Upload date:
- Size: 69.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c01ff6e18f811695544684e3ecfeccfc1da7fe6ab2803e5387857bed9d50233c
|
|
| MD5 |
6e4443ae0ac6f01e41fb3bf5b6999757
|
|
| BLAKE2b-256 |
7a650c989366775b48addc5c4b3b6dcb9ca841e2aaf60e841db84f2dd7e897da
|