original_docstring: 
          Returns the list of nearest neighbors for each of the given IDs and the
          distances to each of those points. This does NOT use the Neighbors
          object, and is therefore based only on the locations of the points in 
          this Embedding (not potentially on its parents).
          
docstring: Returns the list of nearest neighbors for each of the given IDs and the
  distances to each of those points. This does NOT use the Neighbors
  object, and is therefore based only on the locations of the points in
  this Embedding (not potentially on its parents).
docstring_tokens: Returns the list of nearest neighbors for each of the given IDs and the distances to each of those points . This does NOT use the Neighbors object and is therefore based only on the locations of the points in this Embedding ( not potentially on its parents ) .
code: def neighbor_distances(self, ids=None, n_neighbors=100, metric=None):
          """
          Returns the list of nearest neighbors for each of the given IDs and the
          distances to each of those points. This does NOT use the Neighbors
          object, and is therefore based only on the locations of the points in 
          this Embedding (not potentially on its parents).
          """
          pos = self.field(Field.POSITION, ids=ids)
          neighbor_clf = NearestNeighbors(metric=metric or self.metric).fit(self.field(Field.POSITION))
          neigh_distances, neigh_indexes = neighbor_clf.kneighbors(pos, n_neighbors=min(n_neighbors + 1, len(self)))
          return neigh_indexes[:,1:], neigh_distances[:,1:]
code_tokens: def neighbor_distances ( self , ids = None , n_neighbors = 100 , metric = None ) : pos = self . field ( Field . POSITION , ids = ids ) neighbor_clf = NearestNeighbors ( metric = metric or self . metric ) . fit ( self . field ( Field . POSITION ) ) neigh_distances , neigh_indexes = neighbor_clf . kneighbors ( pos , n_neighbors = min ( n_neighbors + 1 , len ( self ) ) ) return neigh_indexes [ : , 1 : ] , neigh_distances [ : , 1 : ]
short_docstring: Returns the list of nearest neighbors for each of the given IDs and the
  distances to each of those points.
short_docstring_tokens: Returns the list of nearest neighbors for each of the given IDs and the distances to each of those points .
comment: """
          Returns the list of nearest neighbors for each of the given IDs and the
          distances to each of those points. This does NOT use the Neighbors
          object, and is therefore based only on the locations of the points in 
          this Embedding (not potentially on its parents).
          """