sklearn.neighbors Module
(Redirected from sklearn.neighbors)
Jump to navigation
Jump to search
An sklearn.neighbors Module is a nearest neighbors system within sklearn.
- Context:
- It require to call/select a Decision Tree Learning System :
sklearn.neighbors.Model_Name(self, arguments)
or simplysklearn.tree.Model_Name()
where Model_Name is the name of the selected K-Nearest Neighbor System.
- It can cotain Unsupervised kNN Learning Systems, Supervised kNN Classification Systems and Supervised kNN Regression Systems.
- It require to call/select a Decision Tree Learning System :
- Example(s):
- Unsupervised kNN Learning Systems:
sklearn.neighbors.BallTree
, for solving a Fast Generalized N-points Task.sklearn.neighbors.KDTree
, for solving a Fast Generalized N-points Task.sklearn.neighbors.DistanceMetric
, a Distance Metric Algorithm.sklearn.neighbors.KernelDensity
, for solving a Kernel Density Estimation Task.sklearn.neighbors.LocalOutlierFactor
, an Unsupervised Outlier Detection System that uses the Local Outlier Factor (LOF) Algorithm.sklearn.neighbors.NearestNeighbors
, an Unsupervised Learning System for implementing neighbor searches.
- Supervised kNN Classification Systems:
sklearn.neighbors.KNeighborsClassifier
, a Classification System that implements a K-Nearest Neighbors Voting Algorithm.sklearn.neighbors.RadiusNeighborsClassifier
, a Classification System that implements a vote among neighbors within a given radius.sklearn.neighbors.NearestCentroid
, a Nearest Centroid Classification System.
- Supervised kNN Regression Systems:
sklearn.neighbors.KNeighborsRegressor
, a Regression System based on K-Nearest Neighbors Algorithm.sklearn.neighbors.RadiusNeighborsRegressor
, a Regression System based on neighbors within a fixed radius.
- Weighted Graphs:
sklearn.neighbors.kneighbors_graph
, a Weighted graph of k-Neighbors for points in X.sklearn.neighbors.radius_neighbors_graph
, a Weighted graph of Neighbors for points in X.
- …
- Unsupervised kNN Learning Systems:
- Counter-Example(s):
sklearn.manifold
, a collection of Manifold Learning Systems.sklearn.tree
, a collection of Decision Tree Learning Systems.sklearn.ensemble
, a collection of Decision Tree Ensemble Learning Systems.sklearn.metrics
, a collection of Metrics Subroutines.sklearn.covariance
,a collection of Covariance Estimators.sklearn.cluster.bicluster
, a collection of Spectral Biclustering Algorithms.sklearn.linear_model
, a collection of Linear Model Regression Systems.
- See: kNN System.
References
- (Scikit-Learn, 2017) ⇒ "sklearn.neighbors: Nearest Neighbors" http://scikit-learn.org/stable/modules/classes.html#module-sklearn.neighbors Retrieved: 2017-11-12
- QUOTE: The sklearn.neighbors module implements the k-nearest neighbors algorithm.
User guide: See the Nearest Neighbors section for further details.
neighbors.BallTree
BallTree for fast generalized N-point problemsneighbors.DistanceMetric
DistanceMetric classneighbors.KDTree
KDTree for fast generalized N-point problemsneighbors.KernelDensity([bandwidth, …])
Kernel Density Estimationneighbors.KNeighborsClassifier([…])
Classifier implementing the k-nearest neighbors vote.neighbors.KNeighborsRegressor([n_neighbors, …])
Regression based on k-nearest neighbors.neighbors.LocalOutlierFactor([n_neighbors, …])
Unsupervised Outlier Detection using Local Outlier Factor (LOF)neighbors.RadiusNeighborsClassifier([…])
Classifier implementing a vote among neighbors within a given radiusneighbors.RadiusNeighborsRegressor([radius, …])
Regression based on neighbors within a fixed radius.neighbors.NearestCentroid([metric, …])
Nearest centroid classifier.neighbors.NearestNeighbors([n_neighbors, …])
Unsupervised learner for implementing neighbor searches.neighbors.kneighbors_graph(X, n_neighbors[, …])
Computes the (weighted) graph of k-Neighbors for points in Xneighbors.radius_neighbors_graph(X, radius)
Computes the (weighted) graph of Neighbors for points in X
- QUOTE: The sklearn.neighbors module implements the k-nearest neighbors algorithm.
2016
- (Scikit-Learn, 2016) ⇒ "1.6. Nearest Neighbors" http://scikit-learn.org/stable/modules/neighbors.html
- QUOTE: sklearn.neighbors provides functionality for unsupervised and supervised neighbors-based learning methods. ...
... The classes in sklearn.neighbors can handle either Numpy arrays or scipy.sparse matrices as input. For dense matrices, a large number of possible distance metrics are supported. For sparse matrices, arbitrary Minkowski metrics are supported for searches. There are many learning routines which rely on nearest neighbors at their core. One example is kernel density estimation, discussed in the density estimation section.
- QUOTE: sklearn.neighbors provides functionality for unsupervised and supervised neighbors-based learning methods. ...