Fixed errors due to old torch.eig function being removed + refactoring and add iris dataset#6
Open
qmeeus wants to merge 2 commits intomxl1990:masterfrom
Open
Fixed errors due to old torch.eig function being removed + refactoring and add iris dataset#6qmeeus wants to merge 2 commits intomxl1990:masterfrom
qmeeus wants to merge 2 commits intomxl1990:masterfrom
Conversation
Richienb
suggested changes
Nov 26, 2024
| H = torch.log(sumP) + beta * torch.sum(D * P) / sumP | ||
| P = P / sumP | ||
|
|
||
| P = (-D).exp() * beta |
There was a problem hiding this comment.
Fix breaking change
Suggested change
| P = (-D).exp() * beta | |
| P = (-D * beta).exp() |
|
|
||
|
|
||
| def x2p_torch(X, tol=1e-5, perplexity=30.0): | ||
| def x2p_torch(X:torch.FloatTensor, tol=1e-5, perplexity=30.0, verbose=False): |
There was a problem hiding this comment.
Suggested change
| def x2p_torch(X:torch.FloatTensor, tol=1e-5, perplexity=30.0, verbose=False): | |
| def x2p_torch(X: torch.FloatTensor, tol=1e-5, perplexity=30.0, verbose=False): |
Richienb
reviewed
Nov 27, 2024
|
|
||
|
|
||
| def tsne(X, no_dims=2, initial_dims=50, perplexity=30.0): | ||
| def pca_torch(X, k=50, device="cuda"): |
There was a problem hiding this comment.
Suggested change
| def pca_torch(X, k=50, device="cuda"): | |
| def pca_torch(X, k=50): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.