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')