Esempio n. 1
0
def test100k_explicit():
    test_count = 5
    evaluation_base = 2
    ans = [0] * evaluation_base
    for k in xrange(1, test_count + 1):
        method.generate_data_100k_explicit(k)
        method.generate_matrix(implicit=False)
        b = method.evaluate_explicit()
        for x in xrange(evaluation_base):
            ans[x] += b[x]
    for x in xrange(evaluation_base):
        ans[x] /= test_count
    print ans
Esempio n. 2
0
def test_latest_small_explicit():
    test_count = 8
    evaluation_base = 2
    ans = [0] * evaluation_base
    for k in xrange(test_count):
        method.generate_data_latest_small_explicit(test_count, k)
        method.generate_matrix(implicit=False)
        b = method.evaluate_explicit()
        for x in xrange(evaluation_base):
            ans[x] += b[x]
    for x in xrange(evaluation_base):
        ans[x] /= test_count
    print ans