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
mellon-1.3.1.tar.gz
(56.9 kB
view hashes)
Built Distribution
mellon-1.3.1-py3-none-any.whl
(69.4 kB
view hashes)