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

Private GIT Repository
Reducing the computation time and adding holidays features
[predictops.git] / main.py
1 from predictops.engine import Engine
2
3 from logging import getLogger
4 from logging.config import fileConfig
5 from pathlib import Path
6
7
8 fileConfig((Path.cwd() / 'config') / 'logging.cfg')
9 logger = getLogger()
10
11 if __name__ == '__main__':
12
13     config = (Path.cwd() / 'config') / 'learn.cfg'
14     engine = Engine(config_file = config)
15
16     engine.add_features()
17     engine.add_target()
18
19     engine.add_preprocessing()
20
21     engine.learn()
22
23     '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
24
25     depts = gpd.read_file( Path.cwd() / 'data' / 'targets' / 'departments' / "departements-20180101.shp")
26     Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0]
27
28     ToArea(area=Doubs.geometry,
29            csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
30     '''