Python package for the MMD Critic method
Project description
mmd-critic
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
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
mmd_critic-0.1.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for mmd_critic-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37907643e71123374c3a19797e70427f880e5f19aec9f3b7d797359cc3804d53 |
|
MD5 | d9c4cec7a17b86b16029d5ccc3bacdb0 |
|
BLAKE2b-256 | b8f3ce8559dbe26132d99ab783895516ded6308306e88888ad9f842b3513391a |