Skip to main content

Python package for the MMD Critic method

Project description

mmd-critic

License

A Python package for implementing the Maximum Mean Discrepancy Critic (MMD-Critic) method. This method is commonly used to find prototypes and criticisms (outliers, roughly speaking) in datasets.

Installation

You can install the package via pip:

pip install mmd-critic

Usage

from mmd_critic import MMDCritic
from mmd_critic.kernels import RBFKernel

critic = MMDCritic(X, RBFKernel(sigma=1))

protos = critic.select_prototypes(50)
criticisms = critic.select_criticisms(10, protos)

See more in the examples

More Info

Read my article for more info on the MMD critic method. I also encourage you to read the original paper.

Acknowledgements

The implementation here is based on Been Kim's original implementation and paper

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

mmd_critic-0.1.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

mmd_critic-0.1.0-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

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