6 ms·
Spectral decomposition is pretty cool. Application 1 - spectral clustering - an alternative to k-means for nonlinear clusters. Get a Distance matrix of your da
by rhyn00 4y ago
Spectral decomposition is pretty cool.
Application 1 - spectral clustering - an alternative to k-means for nonlinear clusters. Get a Distance matrix of your data, spectral decomp, run k-means on your k top eigen vectors and that's your clusters.
Application 2 - graph clustering - (run spectral clustering on adj matrix!)
There's some tricks to getting it to work in practice like normalizing but it's a simple and powerful method. Also the matrices can get big so it helps a lot to use sparse matrix libraries for the computations.
[1] https://towardsdatascience.com/spectral-clustering-aba2640c0d5b#:~:text=Spectral%20clustering%20is%20a%20technique,non%20graph%20data%20as%20well https://towardsdatascience.com/spectral-clustering-aba2640c0....
[2] https://www.hindawi.com/journals/ddns/2020/4540302/ https://www.hindawi.com/journals/ddns/2020/4540302/
- bloqs 4y agoI love that on this website I can find comments that I simply don't understand a word of. Good on you for doing the stuff you do sir.
- arbitrandomuser 4y agoI've never given a second thought about what the etymology of "spectral" in spectral decomposition is. Somewhere in the back of my mind (and I guess many students of physics have the same notion) subconsciously i assumed it originates from eigenvalues of the Hamiltonian determining the atomic spectral lines . But I've never followed up on it and actually looked it up .
- the_svd_doctor 4y agoI might be wrong about the exact historical reason. But the way I see it "spectral decomposition of A" is a way to express A as a sum of orthogonal, rank-1, operators. A = \sum l_i u_i u_i^T. Those l_i are the eigenvalues; u_i are the eigenvectors. The eigenvectors look a whole lot like the "modes" in a Fourier decomposition. And if you plot (i, l_i), the eigenvalues are a bit like the "spectrum" (the amplitude of each mode). In fact, the complex exponentials (the modes in the Fourier decomposition) are also eigenvectors of a specific operator (the Laplacian). Math people are good at finding connections between things.
- deleted 4y ago[deleted]
- blt 4y agoThe spectrum of the matrix A is also closely related to the frequencies at which the ordinary differential equation xdot = Ax oscillates!
- throwawaymaths 4y agoAccording to the almighty wikipedia, The connection is correct but it turned out to be an accident. David Hilbert who coined spectral theory was surprised when it was found to be applicable to solving quantum mechanical spectra.
- alpple 4y agoIf a spectrum is just a range of numbers, then the idea of spectrum should apply to many phenomenon. Many things can be described by a number. So, when matrix spectrum and atomic spectrum were formulated, perhaps spectrum was a word that was in vogue to describe a quantity. I think this is the explanation of the reason the same term is used for both. Because many connected phenomenon can be quantified. I know only a little about matrix spectrum and atomic spectrum, so take my thought with a grain of salt.
- deleted 4y ago[deleted]