Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward-merge branch-23.02 to branch-23.04 #5195

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

GPUtester
Copy link
Contributor

Forward-merge triggered by push to branch-23.02 that creates a PR to keep branch-23.04 up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge.

~~The X input in `fit` and `fit_transform` functions is unnecessary when a KNN graph is provided. This PR adds a `precomputed` boolean parameter. It specifies whether X would serve as a classic input or as a precomputed KNN graph. Additional the `transform` function is modified so that it cannot take a KNN graph anymore.~~

This PR does the following :
1) Provides a `precomputed_knn` parameter to UMAP and tSNE constructor.
It can be provided in the form of a :
    - tuple (distances, indices)
    - pairwise distance matrix of shape (n_samples, n_samples)
    - KNN graph in CSR/COO/CSC format
2) Makes the legacy `knn_graph` parameter of the UMAP and tSNE fit method capable of taking in all the forms aforementioned. The `knn_graph` parameter when provided would take precedence over the `precomputed_knn` parameter.
3) Removes `knn_graph` parameter from UMAP transform method as it wasn't actually doing anything.
4) Adds precomputed KNN capabilities for the UMAP fit method in the sparse case.

Authors:
  - Victor Lafargue (https://github.com/viclafargue)
  - Dante Gama Dessavre (https://github.com/dantegd)
  - Corey J. Nolet (https://github.com/cjnolet)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #4865
@GPUtester GPUtester requested review from a team as code owners February 3, 2023 14:12
@GPUtester GPUtester merged commit 28bca44 into branch-23.04 Feb 3, 2023
@GPUtester
Copy link
Contributor Author

SUCCESS - forward-merge complete.

@github-actions github-actions bot added CUDA/C++ Cython / Python Cython or Python issue labels Feb 3, 2023
AyodeAwe pushed a commit to AyodeAwe/cuml that referenced this pull request Feb 13, 2023
Forward-merge branch-23.02 to branch-23.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CUDA/C++ Cython / Python Cython or Python issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants