Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1018 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 1018 Bytes

multi-time-interval-apriori

This is a pure python implementation of MI-Apriori Algorithm as described in "On mining multi-time-interval sequential patterns" by Ya-Han Hu et. al.[Paper Link]

This was implemented as part of the Data Warehousing and Data Mining course during the 7th semester at NITK Surathkal.

As of this writing it is the only known public implementation of the algorithm.

Running Examples

$ python mi-apriori.py --example 1 --minsup 0.5

You can change the example value to 1, 2, 3 and minsup to value between 0 and 1. Execute $ python mi-apriori.py -h for help.

Usage

from config import DB, TIME_INTERVALS # default db and intervals, you can change these
from mi-apriori import MultiTimeIntervalApriori

m = MultiTimeIntervalApriori(db=DB, timeIntervals=TIME_INTERVALS, min_sup=MIN_SUP)
m.run_apriori(max_sequence_length=6, verbose=True)

Authors

- Kaushik S Kalmady (@kaushiksk)
- Siddharth V (@siddharthvdn)