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

Private GIT Repository
The module to generate the y variable is now created
[predictops.git] / main.py
diff --git a/main.py b/main.py
index 9e35b2da9acf12c39b784454a8c420dae5ce2bb4..969054c7ce186040b11a918c079a32b3a240cf94 100644 (file)
--- a/main.py
+++ b/main.py
@@ -1,7 +1,5 @@
 from predictops.engine import Engine
 from predictops.learn.preprocessing import Preprocessing
 from predictops.engine import Engine
 from predictops.learn.preprocessing import Preprocessing
-from predictops.target.all import All
-from predictops.target.toarea import ToArea
 
 from logging import getLogger
 from logging.config import fileConfig
 
 from logging import getLogger
 from logging.config import fileConfig
@@ -18,16 +16,14 @@ if __name__ == '__main__':
     engine = Engine(config_file = config)
 
     engine.add_features()
     engine = Engine(config_file = config)
 
     engine.add_features()
-    #print(engine.X)
-    process = Preprocessing(config_file = config, dict_features = engine.X)
+    engine.add_target()
 
 
+    process = Preprocessing(config_file = config, dict_features = engine.X)
 
 
-    #print(engine.X[datetime.strptime('06/30/2010 21:00:00', '%m/%d/%Y %H:%M:%S')])
     print(process.dataframe.head(n=20))
     print(process.dataframe.tail(n=20))
 
     print(process.dataframe.head(n=20))
     print(process.dataframe.tail(n=20))
 
-
-    target = All(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
+    #target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
 
 
     exit()
 
 
     exit()
@@ -36,6 +32,5 @@ if __name__ == '__main__':
     Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0]
 
     ToArea(area=Doubs.geometry,
     Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0]
 
     ToArea(area=Doubs.geometry,
-           start = start, end = end,
            csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
 
            csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')