class sklearn.neighbors.NearestNeighbors(n_neighbors=5, radius=1.0, algorithm='auto', leaf_size=30, metric='minkowski', p=2, metric_params=None, n_jobs=1, **kwargs) [source]
Unsupervised learner for implementing neighbor searches. Read more in the User Guide. Parameters:
n_neighbors : int, optional (default = 5) Number of neighbors to use by default for k_neighbors queries. radius : float, optional (default = 1.0) Range of parameter space to use by default for radius_neighbors queries.