-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.py
More file actions
32 lines (27 loc) · 740 Bytes
/
test.py
File metadata and controls
32 lines (27 loc) · 740 Bytes
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
from imageImplementation import CacheObj
from imageImplementation import PsiCache
import ExampleLoader
import LSSVM
import Performance
import UserInput
import os
import signal
import sys
def main():
try:
params = UserInput.getUserInput('test')
ExampleLoader.loadExamples(params)
w = CacheObj.loadObject(params.modelFile)
Performance.writePerformance(params, w, params.resultFile)
Performance.printStrongAndWeakTrainError(params, w)
utils.dumpCurrentLatentVariables(params, params.latentVariableFile)
except Exception, e :
import traceback
traceback.print_exc(file=sys.stdout)
finally:
if params.processes is not None:
for p in params.processes:
p.terminate()
sys.exit(1)
if __name__== "__main__":
main()