Skip to content

Question about TCA np.argsort() #219

Answered by jindongwang
orvindemsy asked this question in Q&A
Discussion options

You must be logged in to vote

Good question. The code is correct. It is smallest eigenvectors that we need since we aim to minimize the objective function.
The function, as you know it, is solved by Rayleigh quotient:

  • max --> largest eigenvectors.
  • min --> smallest eigenvectors.

Thus, we use the smallest eigenvectors in our problem. You can refer to Page 11 of this slide: https://www.sjsu.edu/faculty/guangliang.chen/Math253S20/lec4RayleighQuotient.pdf

When do we need the largest eigenvectors? See this article: https://papers.nips.cc/paper/2001/file/d5c186983b52c4551ee00f72316c6eaa-Paper.pdf.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@orvindemsy
Comment options

Answer selected by jindongwang
Comment options

You must be logged in to vote
4 replies
@jindongwang
Comment options

@orvindemsy
Comment options

@jindongwang
Comment options

@orvindemsy
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants