baakaani commited on
Commit
5a889b3
·
1 Parent(s): ff15e49

Update feature_extraction.json and generation.json with correct file paths

Browse files
config_files/algorithm/feature_extraction.json CHANGED
@@ -1,10 +1,10 @@
1
  [
2
  {
3
  "pipeline_step": "feature_extraction",
4
- "input_path": "output/features/generated/34_bpic_features/2_rt10v_rutpt",
5
  "feature_params": {"feature_set":["simple_stats", "trace_length", "trace_variant", "activities", "start_activities", "end_activities", "eventropies", "epa_based"]},
6
  "output_path": "output/plots",
7
- "real_eventlog_path": "data/34_bpic_features.csv",
8
  "plot_type": "boxplot"
9
  }
10
  ]
 
1
  [
2
  {
3
  "pipeline_step": "feature_extraction",
4
+ "input_path": "data/test_2",
5
  "feature_params": {"feature_set":["simple_stats", "trace_length", "trace_variant", "activities", "start_activities", "end_activities", "eventropies", "epa_based"]},
6
  "output_path": "output/plots",
7
+ "real_eventlog_path": "data/bpic_features.csv",
8
  "plot_type": "boxplot"
9
  }
10
  ]
config_files/algorithm/generation.json CHANGED
@@ -4,7 +4,7 @@
4
  "output_path": "output",
5
  "generator_params": {
6
  "experiment": {
7
- "input_path": "data/grid_objectives_debug.csv",
8
  "objectives": ["epa_normalized_variant_entropy"],
9
  "objectives": ["ratio_most_common_variant", "epa_normalized_sequence_entropy"],
10
  "objectives": ["ratio_top_20_variants","epa_normalized_sequence_entropy_linear_forgetting"]
 
4
  "output_path": "output",
5
  "generator_params": {
6
  "experiment": {
7
+ "input_path": "data/grid_objectives.csv",
8
  "objectives": ["epa_normalized_variant_entropy"],
9
  "objectives": ["ratio_most_common_variant", "epa_normalized_sequence_entropy"],
10
  "objectives": ["ratio_top_20_variants","epa_normalized_sequence_entropy_linear_forgetting"]
tag/features.py CHANGED
@@ -47,6 +47,9 @@ class EventLogFeatures(EventLogFile):
47
  self.filename = os.path.split(input_path)[-1]
48
  else:
49
  self.root_path = Path(input_path)
 
 
 
50
  self.filename = os.listdir(input_path)
51
 
52
  try:
 
47
  self.filename = os.path.split(input_path)[-1]
48
  else:
49
  self.root_path = Path(input_path)
50
+ # Check if directory exists, if not, create it
51
+ if not os.path.exists(input_path):
52
+ os.makedirs(input_path)
53
  self.filename = os.listdir(input_path)
54
 
55
  try: