using all singular values#9
Open
arminarj wants to merge 2 commits into
Open
Conversation
|
Hi both, I've changed my mind on this. I now think that the use all singular values route is just wrong and would be better to push everything through topk (and use_all_sing_val could just default to k=max). Again referring to Andrew 2013 (eqn 10): the tracenorm of T is given by the trace of the matrix square root of T'T. This doesn't to me have a clear relation to the diagonal elements of T'T - perhaps with some conditions e.g. if T'T were diagonal but not the conditions here. |
|
Open to disagreement - I've got in touch with the first person to do it in this way 6 years ago which seems to be the foundation of (what I think is) the bug to see if there's a logic ive missed |
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.
adding @jameschapman19 suggestions to the loss, plus zero checking for torch.sqrt(0) nan values.
Dear @Michaelvll please double-check it before merging it.
Armin