X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/predictops.git/blobdiff_plain/a2faba3f0797b7be72d0c8fa9cb9db67456136d6..83fdad7cdd97734f036d464acceebaf3b0f0a44b:/main.py diff --git a/main.py b/main.py index 27f502a..d451534 100644 --- a/main.py +++ b/main.py @@ -11,14 +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() - - engine.learn() + 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')