from predictops.engine import Engine
-from predictops.learn.preprocessing import Preprocessing
from logging import getLogger
from logging.config import fileConfig
if __name__ == '__main__':
config = (Path.cwd() / 'config') / 'learn.cfg'
- engine = Engine(config_file = config)
-
- engine.add_features()
- engine.add_target()
-
- process = Preprocessing(config_file = config, dict_features = engine.X)
-
- print(process.dataframe.head(n=20))
- print(process.dataframe.tail(n=20))
+ with Engine(config_file = config) as e:
+ e.add_features()
+ e.add_target()
+ e.add_preprocessing()
+ e.learn()
'''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')