Skip to content

Commit

Permalink
update bandwidth docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Nov 17, 2018
1 parent 324a547 commit a46804a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions graphtools/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def Graph(data,
decay : `int` or `None`, optional (default: 10)
Rate of alpha decay to use. If `None`, alpha decay is not used.
bandwidth : `float`, list-like or `None`, optional (default: `None`)
Fixed bandwidth to use. If given, overrides `knn`. Can be a single
bandwidth or a list-like (shape=[n_samples]) of bandwidths for each
sample.
distance : `str`, optional (default: `'euclidean'`)
Any metric from `scipy.spatial.distance` can be used
distance metric for building kNN graph.
Expand Down
4 changes: 2 additions & 2 deletions graphtools/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class kNNGraph(DataGraph):
bandwidth : `float`, list-like or `None`, optional (default: `None`)
Fixed bandwidth to use. If given, overrides `knn`. Can be a single
bandwidth or a list-like (shape=[n_samples]) or bandwidths for each
bandwidth or a list-like (shape=[n_samples]) of bandwidths for each
sample.
TODO: implement `callable` bandwidth
Expand Down Expand Up @@ -641,7 +641,7 @@ class TraditionalGraph(DataGraph):
bandwidth : `float`, list-like or `None`, optional (default: `None`)
Fixed bandwidth to use. If given, overrides `knn`. Can be a single
bandwidth or a list-like (shape=[n_samples]) or bandwidths for each
bandwidth or a list-like (shape=[n_samples]) of bandwidths for each
sample.
TODO: implement `callable` bandwidth
Expand Down
2 changes: 2 additions & 0 deletions test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
build_graph,
raises,
)
import warnings

import igraph
import numpy as np
import graphtools
Expand Down

0 comments on commit a46804a

Please sign in to comment.