A set of python modules for anomaly detection
Project description
kenchi
This is a set of python modules for anomaly detection.
Requirements
Python (>=3.6)
matplotlib (>=2.1.1)
networkx (>=2.0)
numpy (>=1.14.0)
pandas (>=0.22.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
Usage
import matplotlib.pyplot as plt
from kenchi.datasets import load_breast_cancer
from kenchi.outlier_detection import *
f, ax = plt.subplots()
# Load the breast cancer wisconsin dataset
X, y = load_breast_cancer(random_state=0)
for det in [FastABOD(), KNN(), MiniBatchKMeans(), PCA(), KDE()]:
# Fit the model, and plot the ROC curve
det.fit(X).plot_roc_curve(X, y, ax=ax)
plt.show()
License
The MIT License (MIT)
Copyright (c) 2017 Kon
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.8.0.tar.gz
(291.4 kB
view hashes)
Built Distribution
kenchi-0.8.0-py3-none-any.whl
(31.0 kB
view hashes)