Example-Script to classify players from hattrick.org by the K-Nearest Neighbor (KNN) Algorithm. The data is taken from a database I created before in another project (Players-Database-Hattrick). The target-variable Führungsqualitäten (engl. leadership qualities) could have been in a separate table in the database-design. I decided not to do this because it is not a case of (vertical) string-replication. The connection is done with the library called sqlalchemy.
Baschin1103/Knn-classification-sqlalchemy
Example-Script to load data from a database and classify by the K-Nearest Neighbor (KNN) Algorithm.
Python