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

Private GIT Repository
Reducing the computation time and adding holidays features
[predictops.git] / main.py
diff --git a/main.py b/main.py
index d1d7f9c24721819d8e9d0a39eb50a1eb52546e47..27f502aeaa676fd0a0500e2ca4f20a295f5d0ce9 100644 (file)
--- a/main.py
+++ b/main.py
@@ -1,5 +1,4 @@
 from predictops.engine import Engine
-from predictops.learn.preprocessing import Preprocessing
 
 from logging import getLogger
 from logging.config import fileConfig
@@ -17,10 +16,9 @@ if __name__ == '__main__':
     engine.add_features()
     engine.add_target()
 
-    process = Preprocessing(config_file = config, dict_features = engine.X)
+    engine.add_preprocessing()
 
-    print(process.dataframe.head(n=20))
-    print(process.dataframe.tail(n=20))
+    engine.learn()
 
     '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')