A set of python modules for anomaly detection
Project description
kenchi
This is a set of python modules for anomaly detection.
Dependencies
Python (>=3.6)
matplotlib (>=2.1.1)
networkx (>=2.0)
numpy (>=1.14.0)
scikit-learn (>=0.19.1)
scipy (>=1.0.0)
Installation
You can install via pip
pip install kenchi
or conda.
conda install -c y_ohr_n kenchi
Anomaly detection methods
Examples
import matplotlib.pyplot as plt
from kenchi.datasets import load_wdbc
from kenchi.outlier_detection import *
# Load the breast cancer wisconsin dataset
X, y = load_wdbc(random_state=0)
f, ax = plt.subplots()
detectors = [
FastABOD(),
MiniBatchKMeans(random_state=0),
LOF(),
KNN(),
IForest(random_state=0),
PCA(),
KDE()
]
for det in detectors:
# Fit the model, and plot the ROC curve
det.fit(X).plot_roc_curve(X=None, y=y, ax=ax)
plt.show()
License
BSD 3-Clause “New” or “Revised” License
Copyright (c) 2018, Kon
References
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
kenchi-0.9.0.tar.gz
(4.8 MB
view hashes)
Built Distribution
kenchi-0.9.0-py3-none-any.whl
(40.3 kB
view hashes)