-
Notifications
You must be signed in to change notification settings - Fork 1
/
testDataDirectory.py
50 lines (34 loc) · 1.08 KB
/
testDataDirectory.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from util import *
test_filename = 'pickle/test/uid/'
test_user = load_pickle(test_filename+'userid.pickle')
test_ratings = load_pickle(test_filename+'rating.pickle')
test_business = load_pickle(test_filename+'business.pickle')
test_docs_csr = load_pickle(test_filename+'docs_csr.pickle')
test_docs = load_pickle(test_filename +'docs_full.pickle')
test_docs_nmf = load_pickle(test_filename+'docs_nmf.pickle')
test_unique_users = set(test_user)
test_unique_business = set(test_business)
def getTestAllUsers():
return test_user
def getTestAllBusiness():
return test_business
def getTestAllActualRating():
return test_ratings
def getTestAllDocCSR():
return test_docs_csr
def getTestUser(i):
return test_user[i]
def getTestBusiness(i):
return test_business[i]
def getTestActualRating(i):
return test_ratings[i]
def getTestDocNMF(i):
return test_docs_nmf[i]
def getTestDocCSR(i):
return test_docs_csr[i]
def getTestDoc(i):
return test_docs[i]
def getTestUniqueUsers():
return test_unique_users
def getTestUniqueBusiness():
return test_unique_business