]> AND Private Git Repository - predictops.git/blobdiff - main.py
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
lightgbm is now working
[predictops.git] / main.py
diff --git a/main.py b/main.py
index cf8fe81d13940c996d9abb1344c9a296d6f199f1..d451534d130211ace744abc93379b9be5c7de0ef 100644 (file)
--- a/main.py
+++ b/main.py
@@ -11,13 +11,11 @@ logger = getLogger()
 if __name__ == '__main__':
 
     config = (Path.cwd() / 'config') / 'learn.cfg'
 if __name__ == '__main__':
 
     config = (Path.cwd() / 'config') / 'learn.cfg'
-    engine = Engine(config_file = config)
-
-    engine.add_features()
-    engine.add_target()
-
-    engine.add_preprocessing()
-
+    with Engine(config_file = config) as e:
+        e.add_features()
+        e.add_target()
+        e.add_preprocessing()
+        e.learn()
 
     '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
 
 
     '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')