FAU-CS6 / KDD

Lecture and exercise of "Knowledge Discovery in Databases"
GNU General Public License v3.0
22 stars 11 forks source link

Exercise-Classification: Selecting the correct eigenvector #83

Closed Lucew closed 3 months ago

Lucew commented 3 months ago

In Exercise-Classification the largest eigenvalue does not always have index 0. Seems like this depends on the Numpy and Python versions.

Therefore I added some code that sorts the eigenvalues and eigenvectors in increasing order. This ensures the index 1 eigenvector is always the correct one to select.