Browse Source

workers need re-work

Steve L. Nyemba 8 years ago
parent
commit
65013e0cac
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/utils/__init__.py

+ 14 - 0
src/utils/__init__.py

@@ -1 +1,15 @@
 
+
+import os
+import json
+from utils.workers import *
+from utils.params import PARAMS
+f = open(PARAMS['path'])
+config = json.loads(f.read())
+f.close()
+from threading import RLock
+lock = RLock()
+p = Learner(config,lock)
+p.daemon = True
+p.start()
+p.join()