Skip to main content

Non-parametric density estimator.

Project description

Mellon

https://zenodo.org/badge/558998366.svg https://codecov.io/github/settylab/Mellon/branch/main/graph/badge.svg?token=TKIKXK4MPG CodeFactor https://badge.fury.io/py/mellon.svg https://anaconda.org/conda-forge/mellon/badges/version.svg https://static.pepy.tech/personalized-badge/mellon?period=total&units=international_system&left_color=grey&right_color=lightgrey&left_text=Downloads https://github.com/settylab/mellon/raw/main/landscape.png?raw=true

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


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.0.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mellon-1.3.0-py3-none-any.whl (69.1 kB view details)

Uploaded Python 3

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

Hashes for mellon-1.3.0.tar.gz
Algorithm Hash digest
SHA256 0b9afb03cfc675166b6aee1d193c13d803febbbf774fb505f5f0ae1a6d8bf86b
MD5 314595913484b5bba327bcbacc21941f
BLAKE2b-256 78536beeb032b14d6aa0ab6d21e02a46d7750ffb203a7608721b69eda645e285

See more details on using hashes here.

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

Hashes for mellon-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c01ff6e18f811695544684e3ecfeccfc1da7fe6ab2803e5387857bed9d50233c
MD5 6e4443ae0ac6f01e41fb3bf5b6999757
BLAKE2b-256 7a650c989366775b48addc5c4b3b6dcb9ca841e2aaf60e841db84f2dd7e897da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page