X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/predictops.git/blobdiff_plain/fbeb0a86f1d3efc96263a81981b0a059d93fa4f5..90e69cb2125d4bae76a27b9c38defb4f70bf2ca6:/main.py?ds=sidebyside diff --git a/main.py b/main.py index cf8fe81..d451534 100644 --- a/main.py +++ b/main.py @@ -11,13 +11,11 @@ logger = getLogger() if __name__ == '__main__': config = (Path.cwd() / 'config') / 'learn.cfg' - engine = Engine(config_file = config) - - engine.add_features() - engine.add_target() - - engine.add_preprocessing() - + 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')