def process(oil_data, freight_outward_data, freight_homeward_data, exchange_data, demand_data, supply_data, newbuilding_data, secondhand_data, actionlist): ga = GA(oil_data, freight_outward_data, freight_homeward_data, exchange_data, demand_data, supply_data, newbuilding_data, secondhand_data, actionlist) return ga.execute_GA()
def one_rule_example(actionlist): oil_data, freight_outward_data, freight_homeward_data, exchange_data, demand_data, supply_data, newbuilding_data, secondhand_data = load_generated_sinario( TRAIN_DATA_SET) ga = GA(oil_data, freight_outward_data, freight_homeward_data, exchange_data, demand_data, supply_data, newbuilding_data, secondhand_data, actionlist) p = [] p.append(ga.execute_GA()) print(p) export_rules_csv(p, 1)