Skip to content

Commit 6e734d5

Browse files
authored
Add NN.extend and kmeans to Python doc (rapidsai#1217)
All the nearest neighbors `extend` functions were missing. Authors: - Micka (https://github.com/lowener) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#1217
1 parent c22b777 commit 6e734d5

7 files changed

Lines changed: 60 additions & 0 deletions

File tree

docs/source/python_api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Python API Documentation
77
.. toctree::
88
:maxdepth: 4
99

10+
python_api/cluster.rst
1011
python_api/distance.rst
1112
python_api/neighbors.rst
1213
python_api/preprocessing.rst

docs/source/python_api/cluster.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Cluster
2+
========
3+
4+
.. role:: py(code)
5+
:language: python
6+
:class: highlight
7+
8+
.. toctree::
9+
:maxdepth: 1
10+
:caption: Contents:
11+
12+
cluster_kmeans.rst
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
K-Means
2+
=======
3+
4+
.. role:: py(code)
5+
:language: python
6+
:class: highlight
7+
8+
K-Means Parameters
9+
##################
10+
11+
.. autoclass:: cuvs.cluster.kmeans.KMeansParams
12+
:members:
13+
14+
K-Means Fit
15+
###########
16+
17+
.. autofunction:: cuvs.cluster.kmeans.fit
18+
19+
K-Means Predict
20+
###############
21+
22+
.. autofunction:: cuvs.cluster.kmeans.predict
23+
24+
K-Means Cluster Cost
25+
####################
26+
27+
.. autofunction:: cuvs.cluster.kmeans.cluster_cost

docs/source/python_api/neighbors_cagra.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ Index load
4444
##########
4545

4646
.. autofunction:: cuvs.neighbors.cagra.load
47+
48+
Index extend
49+
###########
50+
51+
.. autofunction:: cuvs.neighbors.cagra.extend

docs/source/python_api/neighbors_hnsw.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ Index load
3838
##########
3939

4040
.. autofunction:: cuvs.neighbors.hnsw.load
41+
42+
Index extend
43+
###########
44+
45+
.. autofunction:: cuvs.neighbors.hnsw.extend

docs/source/python_api/neighbors_ivf_flat.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ Index load
4242
##########
4343

4444
.. autofunction:: cuvs.neighbors.ivf_flat.load
45+
46+
Index extend
47+
############
48+
49+
.. autofunction:: cuvs.neighbors.ivf_flat.extend

docs/source/python_api/neighbors_ivf_pq.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ Index load
4242
##########
4343

4444
.. autofunction:: cuvs.neighbors.ivf_pq.load
45+
46+
Index extend
47+
############
48+
49+
.. autofunction:: cuvs.neighbors.ivf_pq.extend

0 commit comments

Comments
 (0)