Skip to content

Implementation of Multi Time Interval Apriori Algorithm in Python

Notifications You must be signed in to change notification settings

kaushiksk/multi-time-interval-apriori

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Implementation of Multi Time Interval Apriori Algorithm in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages