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

Private GIT Repository
Adding ramadan features, and binary category of feat.
[predictops.git] / main.py
diff --git a/main.py b/main.py
index 27f502aeaa676fd0a0500e2ca4f20a295f5d0ce9..d451534d130211ace744abc93379b9be5c7de0ef 100644 (file)
--- a/main.py
+++ b/main.py
@@ -11,14 +11,11 @@ logger = getLogger()
 if __name__ == '__main__':
 
     config = (Path.cwd() / 'config') / 'learn.cfg'
-    engine = Engine(config_file = config)
-
-    engine.add_features()
-    engine.add_target()
-
-    engine.add_preprocessing()
-
-    engine.learn()
+    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')