Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
k-Nearest Neighbors evaluator.

Currently uses brute force to find the kNN distnce - this is the best
we can do without extra information about the distance function.

src/a/d/ad-eval-HEAD/anomaly_detection/evaluators/__init__.py   ad-eval(Download)
    if method == 'knn':
        evaluator = knn.KNNEvaluator(distance=distance, k=int(k), **kwargs)
    elif method == 'svm':
        evaluator = svm.SVMEvaluator(**kwargs)

src/a/d/ad-eval-HEAD/anomaly_detection/evaluators/knn/__init__.py   ad-eval(Download)
from knn import KNNEvaluator