-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
53 lines (42 loc) · 1.08 KB
/
main.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
51
52
53
from data_load import *
from data_merge import *
from feature_creator import *
import time
from classifiers import *
def tempo(start, task):
print("T =",round((time.time()-start)/60), "minutos \t", task)
def main():
"""
start = time.time()
initDatabase()
tempo(start, "initDatabase")
start = time.time()
initDatabaseTest()
tempo(start, "initDatabaseTest")
# MELHOR CRIAR OS INDICES DIRETO NO CMD DO DATABASE
#start = time.time()
#createIndexes()
#tempo(start, "createIndexes")
start = time.time()
aggragatePairsItems()
tempo(start, "aggragatePairsItems")
start = time.time()
aggragatePairsItemsTest()
tempo(start, "aggragatePairsItemsTest")
start = time.time()
initFeaturesGeneral()
tempo(start, "initFeaturesGeneral")
start = time.time()
initFeaturesGeneralTest()
tempo(start, "initFeaturesGeneralTest")
start = time.time()
initFeaturesDiscretes()
tempo(start, "initFeaturesDiscretes")
start = time.time()
initFeaturesDiscretesTest()
tempo(start, "initFeaturesDiscretesTest")
"""
start = time.time()
classify(learn_xgb=True)
tempo(start, "classify")
main()