1 from predictops.engine import Engine
3 from logging import getLogger
4 from logging.config import fileConfig
5 from pathlib import Path
8 fileConfig((Path.cwd() / 'config') / 'logging.cfg')
11 if __name__ == '__main__':
13 config = (Path.cwd() / 'config') / 'learn.cfg'
14 engine = Engine(config_file = config)
19 engine.add_preprocessing()
23 '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
25 depts = gpd.read_file( Path.cwd() / 'data' / 'targets' / 'departments' / "departements-20180101.shp")
26 Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0]
28 ToArea(area=Doubs.geometry,
29 csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')