File: __init__.py

package info (click to toggle)
scikit-learn 0.11.0-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,900 kB
  • sloc: python: 34,740; ansic: 8,860; cpp: 8,849; pascal: 230; makefile: 211; sh: 14
file content (17 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
The :mod:`sklearn.neighbors` module implements the k-nearest neighbors
algorithm.
"""

__all__ = ['BallTree',
           'kneighbors_graph', 'radius_neighbors_graph',
           'NearestNeighbors',
           'KNeighborsClassifier', 'RadiusNeighborsClassifier',
           'KNeighborsRegressor', 'RadiusNeighborsRegressor']

from .ball_tree import BallTree
from .graph import kneighbors_graph, radius_neighbors_graph
from .unsupervised import NearestNeighbors
from .classification import KNeighborsClassifier, RadiusNeighborsClassifier
from .regression import KNeighborsRegressor, RadiusNeighborsRegressor
from .nearest_centroid import NearestCentroid