from predictops.engine import Engine
-from predictops.learn.preprocessing import Preprocessing
from logging import getLogger
from logging.config import fileConfig
from pathlib import Path
-import geopandas as gpd
fileConfig((Path.cwd() / 'config') / 'logging.cfg')
logger = getLogger()
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')
-
-
- exit()
+ '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
depts = gpd.read_file( Path.cwd() / 'data' / 'targets' / 'departments' / "departements-20180101.shp")
Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0]
ToArea(area=Doubs.geometry,
csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
-
+ '''