Skip to content

Commit

Permalink
document allowing callable distance
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Nov 27, 2018
1 parent fec7035 commit 88c5e28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphtools/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class kNNGraph(DataGraph):
distance : `str`, optional (default: `'euclidean'`)
Any metric from `scipy.spatial.distance` can be used
distance metric for building kNN graph.
distance metric for building kNN graph. Custom distance
functions of form `f(x, y) = d` are also accepted.
TODO: actually sklearn.neighbors has even more choices
thresh : `float`, optional (default: `1e-4`)
Expand Down

0 comments on commit 88c5e28

Please sign in to comment.