/ml-hw1

Machine Learning: KNN using sklearn

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Machine Learning: KNN using sklearn

more detailed information in ITALIAN: REPORT.MD

Comparing K Nearest Neighbor with different k and metrics.

Utilized libs

  • pandas: load and manipulation of DataSet
  • sklearn: algo, stats and splitting of TrainingSet

note: see main-from-scratch.py + lib.py for a an implementation without external library

Script usage

main.py [dataset] [test_size]  
  • dataset: [wine|breast-cancer|letters|poker] - select DataSet. Default is wine
  • testset_size: [0,1] - TestSet dimension

DataSets

The DataSet taken from archive.ics.uci.edu are: