theodoretan / data-mining-algorithms

Python implementation of the Apriori and K-Means algorithms.
1 stars 0 forks source link

Data Mining Algorithms

Setup

Linux:

cd data-mining-algorithms
$ sudo ./setup.sh

This will set up pypy3.3, pip3, matplotlib, and numpy.


Apriori Algorithm

To run the algorithm:

$ pypy3.3 Apriori/main.py [filename] [support] [confidence] -d D

Example:

$ pypy3.3 Apriori/main.py Datasets/Apriori/apr.fpg.retail.comma.txt 0.5 0.5

K-Means

To run the algorithm:

$ python3 K-Means/main.py [filename] [k] [squared error] [type] -x X -y Y -d D -t

Example:

$ python3 K-Means/main.py Datasets/K-Means/airports-titles.dat 6 0.0001 float -t
$ python3 K-Means/main.py Datasets/K-Means/km.comma.txt 4 0.0001 int -d ,