项目作者: kaushiksk

项目描述 :
Implementation of Multi Time Interval Apriori Algorithm in Python
高级语言: Python
项目地址: git://github.com/kaushiksk/multi-time-interval-apriori.git
创建时间: 2018-11-11T14:11:26Z
项目社区:https://github.com/kaushiksk/multi-time-interval-apriori

开源协议:

下载


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

  1. from config import DB, TIME_INTERVALS # default db and intervals, you can change these
  2. from mi-apriori import MultiTimeIntervalApriori
  3. m = MultiTimeIntervalApriori(db=DB, timeIntervals=TIME_INTERVALS, min_sup=MIN_SUP)
  4. m.run_apriori(max_sequence_length=6, verbose=True)

Authors

  1. - Kaushik S Kalmady (@kaushiksk)
  2. - Siddharth V (@siddharthvdn)