You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use doctest for testing python example docstrings (rapidsai#1073)
Similar to rapidsai/cudf#9815, this change uses doctest to test that the pylibraft example docstrings run without issue.
This caught several errors in the example docstrings, that are also fixed in this PR:
* a missing ‘device_ndarray’ import in kmeans fit when the centroids weren’t explicitly passed in
* an error in the fused_l2_nn_argmin docstring where output wasn’t defined
* An `AttributeError: module 'pylibraft.neighbors.ivf_pq' has no attribute 'np'` error in ivf_pq
Closesrapidsai#981
Authors:
- Ben Frederickson (https://github.com/benfred)
Approvers:
- Corey J. Nolet (https://github.com/cjnolet)
URL: rapidsai#1073
0 commit comments