Skip to content

A Python implementation of the KNN algorithm proposed for the course of Data Mining @ UFMG.

Notifications You must be signed in to change notification settings

thalesfc/dataMining_knn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dataMining_knn

A Python implementation of the KNN algorithm proposed for the course of Data Mining @ UFMG.

=============

  • Executando o código:

$ cd src/

$ python knn.py -i ../data/imdb_train -t ../data/imdb_test -k 7

  • Parâmetros:

    -i

    -t

    -k

    -s : caminho para o arquivo com as stopwords, se não passar não há remoção de stopwords

    -d <distância> : euclidean, cosine, jaccard, hamming, manhattan, correlation

    -m : porcentagem do treino a ser utilizada, e. g., -m 0.1 usa 10% do treino

About

A Python implementation of the KNN algorithm proposed for the course of Data Mining @ UFMG.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published