import sys
import re
import csv as CSV
from copy import deepcopy
from operator import itemgetter
import json as JSON
import collections as CL
import itertools as IT
import functools as FT
from functools import partial
from functools import wraps

import fptree_config as FPC

configs_filename = 'config-t6.json'
configs = FPC.get_configs(configs_filename)
MIN_SPT = configs['min_support']
MIN_FREQ_ITEMSET_LENGTH = configs['min_freq_itemset_length']
# dataset = load_data()
dataset = FPC.load_data(configs['data_file'])
TRANS_COUNT = len(dataset)



#---------------------- building the fp-tree -----------------------#


def item_counter(dataset):
    """
    returns: a dict whose keys are the unique items comprising the
		transactions & whose values are the integer counts
Exemple #2
0
def fpg_config_6(request):
	return FPC.get_configs('config-t6.json')