baakaani commited on
Commit
8de6004
·
1 Parent(s): 2a2deae

changing miner names 1/?

Browse files
config_files/pipeline_steps/benchmark.json CHANGED
@@ -4,6 +4,6 @@
4
  "benchmark_test": "discovery",
5
  "input_path":"data/test",
6
  "output_path":"output",
7
- "miners" : ["inductive", "heu", "imf", "ilp"]
8
  }
9
  ]
 
4
  "benchmark_test": "discovery",
5
  "input_path":"data/test",
6
  "output_path":"output",
7
+ "miners" : ["ind", "heu", "imf", "ilp"]
8
  }
9
  ]
gedi/benchmark.py CHANGED
@@ -75,7 +75,7 @@ class BenchmarkTest:
75
  f" and {len(benchmark_results)} event-logs. Saved benchmark to {self.filepath}.")
76
  print("========================= ~ BenchmarkTest =============================")
77
 
78
- def benchmark_wrapper(self, event_log, log_counter=0, miners=['inductive']):
79
  dump_path = os.path.join(self.params[OUTPUT_PATH],
80
  os.path.split(self.params[INPUT_PATH])[-1])
81
  dump_path= os.path.join(self.params[OUTPUT_PATH],
@@ -183,6 +183,8 @@ class BenchmarkTest:
183
  if miner == 'imf':
184
  miner = 'inductive'
185
  miner_params = f', noise_threshold={NOISE_THRESHOLD}'
 
 
186
  elif miner == 'heu':
187
  miner = 'heuristics'
188
  net, im, fm = eval(f"discover_petri_net_{miner}(log {miner_params})")
 
75
  f" and {len(benchmark_results)} event-logs. Saved benchmark to {self.filepath}.")
76
  print("========================= ~ BenchmarkTest =============================")
77
 
78
+ def benchmark_wrapper(self, event_log, log_counter=0, miners=['ind']):
79
  dump_path = os.path.join(self.params[OUTPUT_PATH],
80
  os.path.split(self.params[INPUT_PATH])[-1])
81
  dump_path= os.path.join(self.params[OUTPUT_PATH],
 
183
  if miner == 'imf':
184
  miner = 'inductive'
185
  miner_params = f', noise_threshold={NOISE_THRESHOLD}'
186
+ elif miner == 'ind':
187
+ miner = 'inductive'
188
  elif miner == 'heu':
189
  miner = 'heuristics'
190
  net, im, fm = eval(f"discover_petri_net_{miner}(log {miner_params})")