pyod库实现异常值检测 案例
目录
一、KNN检测案例
二、组合案例
三、相关api链接
一、KNN检测案例
# -*- coding: utf-8 -*-
"""Example of using kNN for outlier detection
"""
# Author: Yue Zhao
# License: BSD 2 clause
from __future__ import division
from __future__ import print_function
from pyod.models.knn import KNN
from pyod.utils.data import generate_data
from pyod.utils.data import evaluate_print
from pyod.utils.example import visualize
import os
import sys
# temporary solution for relative imports in
共有 0 条评论