Skip to content

Commit c59357b

Browse files
authored
Merge pull request #73 from MattScicluna/use_numba
Add option for numba acceleration. Improve tests.
2 parents 2787202 + 04256c3 commit c59357b

File tree

12 files changed

+1598
-220
lines changed

12 files changed

+1598
-220
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ Or, to install the latest version from github::
4444

4545
pip install --user git+git://github.com/KrishnaswamyLab/graphtools.git
4646

47+
For improved performance with large datasets, install with numba acceleration::
48+
49+
pip install --user graphtools[fast]
50+
4751
Usage example
4852
-------------
4953

graphtools/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def Graph(
3131
adaptive_k=None,
3232
n_landmark=None,
3333
n_svd=100,
34+
random_landmarking=False,
3435
n_jobs=-1,
3536
verbose=False,
3637
random_state=None,
@@ -141,6 +142,11 @@ def Graph(
141142
n_svd : `int`, optional (default: 100)
142143
number of SVD components to use for spectral clustering
143144
145+
random_landmarking : `bool`, optional (default: False)
146+
If True, use random landmark selection instead of spectral clustering.
147+
Randomly selects n_landmark points and assigns samples to nearest landmark.
148+
Only used when n_landmark is not None.
149+
144150
random_state : `int` or `None`, optional (default: `None`)
145151
Random state for random PCA
146152

0 commit comments

Comments
 (0)