Empirical Christoffel function for outlier detection
Project description
Empirical Christoffel function for outlier detection
This module is an implementation of the empirical Christoffel function applied to outlier detection as proposed by Lasserre and Pauwels in The empirical Christoffel function with applications in data analysis.
Example
from ecf import EmpiricalChristoffelFunction
import numpy as np
# Initialize the detector with default degree (4)
c = EmpiricalChristoffelFunction()
# Generate random data points
X = np.array([[0,2],[1,1.5],[0.2,1.9],[100,1.2]])
# Predict the outliers
print(c.fit_predict(X))
# Print the scores
print(c.score_)
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
ecf-0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
ecf-0.1-py3-none-any.whl
(4.3 kB
view hashes)