Example #1
0
        mk = markov.MarkovModel()
        algs['markov'] = mk

        sra = sr.SequentialRules(10,
                                 weighting='div',
                                 pruning=20,
                                 last_n_days=None)
        algs['sr10-div'] = sra

        ara = ar.AssosiationRules()
        algs['ar'] = ara

        #knn

        iknna = iknn.ItemKNN()
        algs['iknn'] = iknna

        sknna = sknn.ContextKNN(100, 500, similarity="cosine", extend=False)
        algs['sknn-100-500-cosine'] = sknna

        vsknna = vsknn.VMContextKNN(100,
                                    2000,
                                    similarity="cosine",
                                    last_n_days=None,
                                    extend=False)
        algs['vsknn-200-2000-cosine'] = vsknna

        ssknna = ssknn.SeqContextKNN(100,
                                     500,
                                     similarity="cosine",
Example #2
0
    algs = {}

    #baselines

    mk = markov.MarkovModel()
    algs['markov'] = mk

    sra = sr.SequentialRules(10, weighting='div', pruning=20, last_n_days=None)
    algs['sr10-div'] = sra

    ara = ar.AssosiationRules()
    algs['ar'] = ara

    #knn

    iknn = iknn.ItemKNN()
    algs['iknn'] = iknn

    sknn = sknn.ContextKNN(100, 500, similarity="cosine", extend=False)
    algs['sknn-100-500-cosine'] = sknn

    vmsknn = vsknn.VMContextKNN(100,
                                2000,
                                similarity="cosine",
                                last_n_days=None,
                                extend=False)
    algs['vsknn-200-2000-cosine'] = vmsknn

    ssknn = ssknn.SeqContextKNN(100, 500, similarity="cosine", extend=False)
    algs['ssknn-100-500-cosine-div'] = ssknn