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

Private GIT Repository
Bug fixed and starting to work on the target variable
authorChristophe Guyeux <christophe.guyeux@univ-fcomte.fr>
Tue, 11 Feb 2020 10:19:17 +0000 (11:19 +0100)
committerChristophe Guyeux <christophe.guyeux@univ-fcomte.fr>
Tue, 11 Feb 2020 10:19:17 +0000 (11:19 +0100)
config/features/ephemeris_features.csv [new file with mode: 0644]
lib/source/meteofrance.py
lib/target/barracks.py [new file with mode: 0644]
main.py

diff --git a/config/features/ephemeris_features.csv b/config/features/ephemeris_features.csv
new file mode 100644 (file)
index 0000000..72060ef
--- /dev/null
@@ -0,0 +1,8 @@
+name,type
+hour,3
+dayInWeek,3
+dayInMonth,3
+dayInYear,3
+weekInYear,3
+month,3
+year,3
index c524089e6362d0ec48c6d6aab57596b9a95887bf..88706ead406777ef0e119f0798cd1d169b6daf7f 100644 (file)
@@ -176,7 +176,6 @@ class MeteoFrance:
             remove(self._data_directory / 'historical' / todel)
         except:
             logger.warning(f"{self._data_directory / 'historical' / todel} not found")
-        system("touch "+todel)
         self._collect_historical_data()
 
 
diff --git a/lib/target/barracks.py b/lib/target/barracks.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/main.py b/main.py
index 6733216b474c45a136766be52e83ed3e3a0591e7..a6a8d742d6c4c21d1447e92221880bae1dae4632 100644 (file)
--- a/main.py
+++ b/main.py
@@ -66,4 +66,6 @@ engine.add_feature(name = 'ephemeris',
                    features = ['hour', 'dayInWeek', 'dayInMonth', 'dayInYear',
                                'weekInYear', 'month', 'year'])
 
-print(engine.X)
\ No newline at end of file
+
+
+print(engine.X[datetime.strptime('06/30/2010 21:00:00', '%m/%d/%Y %H:%M:%S')])
\ No newline at end of file