Andrea Maldonado commited on
Commit
8517a41
·
1 Parent(s): c4b0ca7

Updates notebook

Browse files
Files changed (1) hide show
  1. notebooks/experiment_generator.ipynb +635 -236
notebooks/experiment_generator.ipynb CHANGED
@@ -72,50 +72,50 @@
72
  "name": "stdout",
73
  "output_type": "stream",
74
  "text": [
75
- "21 [('epa_normalized_sequence_entropy', 'ratio_most_common_variant'), ('epa_normalized_variant_entropy', 'ratio_top_10_variants'), ('epa_normalized_sequence_entropy', 'epa_normalized_variant_entropy'), ('epa_normalized_sequence_entropy', 'ratio_top_10_variants'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'ratio_variants_per_number_of_traces'), ('ratio_most_common_variant', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'ratio_most_common_variant'), ('ratio_top_10_variants', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy', 'epa_normalized_sequence_entropy_linear_forgetting'), ('epa_normalized_sequence_entropy', 'epa_normalized_sequence_entropy_exponential_forgetting'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'epa_normalized_variant_entropy'), ('epa_normalized_sequence_entropy_linear_forgetting', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'ratio_top_10_variants'), ('epa_normalized_sequence_entropy_linear_forgetting', 'ratio_most_common_variant'), ('ratio_most_common_variant', 'ratio_top_10_variants'), ('epa_normalized_variant_entropy', 'ratio_variants_per_number_of_traces'), ('epa_normalized_variant_entropy', 'ratio_most_common_variant'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'epa_normalized_sequence_entropy_linear_forgetting'), ('epa_normalized_sequence_entropy_linear_forgetting', 'epa_normalized_variant_entropy'), ('epa_normalized_sequence_entropy', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy_linear_forgetting', 'ratio_top_10_variants')]\n",
76
  "121\n",
77
- "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_rmcv.csv\n",
78
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_rmcv.json\n",
79
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enve_rt10v.csv\n",
80
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enve_rt10v.json\n",
81
- "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_enve.csv\n",
82
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_enve.json\n",
83
- "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_rt10v.csv\n",
84
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_rt10v.json\n",
85
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_rvpnot.csv\n",
86
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_rvpnot.json\n",
87
- "Saved experiment in ../data/grid_2obj/grid_2objectives_rmcv_rvpnot.csv\n",
88
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_rmcv_rvpnot.json\n",
89
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_rmcv.csv\n",
90
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_rmcv.json\n",
91
  "Saved experiment in ../data/grid_2obj/grid_2objectives_rt10v_rvpnot.csv\n",
92
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_rt10v_rvpnot.json\n",
93
  "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_enself.csv\n",
94
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_enself.json\n",
 
 
 
 
 
 
 
 
 
 
95
  "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_enseef.csv\n",
96
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_enseef.json\n",
97
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_enve.csv\n",
98
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_enve.json\n",
99
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_rvpnot.csv\n",
100
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_rvpnot.json\n",
101
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_rt10v.csv\n",
102
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_rt10v.json\n",
103
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_rmcv.csv\n",
104
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_rmcv.json\n",
105
- "Saved experiment in ../data/grid_2obj/grid_2objectives_rmcv_rt10v.csv\n",
106
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_rmcv_rt10v.json\n",
107
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enve_rvpnot.csv\n",
108
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enve_rvpnot.json\n",
109
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enve_rmcv.csv\n",
110
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enve_rmcv.json\n",
111
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_enself.csv\n",
112
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_enself.json\n",
113
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_enve.csv\n",
114
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_enve.json\n",
115
- "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_rvpnot.csv\n",
116
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_rvpnot.json\n",
117
- "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_rt10v.csv\n",
118
- "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_rt10v.json\n",
119
  "None\n"
120
  ]
121
  }
@@ -601,18 +601,11 @@
601
  "name": "stdout",
602
  "output_type": "stream",
603
  "text": [
604
- "(34, 178)\n",
605
- "34 Event-Logs: ['BPI2016_Complaints' 'BPI2016_Questions' 'BPI2016_Werkmap_Messages'\n",
606
- " 'BPIC15_1' 'BPIC15_2' 'BPIC15_3' 'BPIC15_4' 'BPIC15_5'\n",
607
- " 'BPI_Challenge_2012' 'BPI_Challenge_2013_closed_problems'\n",
608
- " 'BPI_Challenge_2013_incidents' 'BPI_Challenge_2013_open_problems'\n",
609
- " 'BPI_Challenge_2017' 'BPI_Challenge_2017_Offer_log' 'BPI_Challenge_2018'\n",
610
- " 'BPI_Challenge_2019' 'CoSeLoG_WABO_1' 'CoSeLoG_WABO_2' 'CoSeLoG_WABO_3'\n",
611
- " 'CoSeLoG_WABO_4' 'CoSeLoG_WABO_5' 'Detail_Change'\n",
612
- " 'Detail_Incident_Activity' 'Detail_Interaction' 'DomesticDeclarations'\n",
613
- " 'Hospital_log' 'InternationalDeclarations' 'PermitLog'\n",
614
- " 'PrepaidTravelCost' 'Receipt_WABO_CoSeLoG' 'RequestForPayment'\n",
615
- " 'Road_Traffic_Fine_Management_Process' 'Sepsis_Cases_Event_Log' 'finale']\n"
616
  ]
617
  },
618
  {
@@ -637,212 +630,110 @@
637
  " <tr style=\"text-align: right;\">\n",
638
  " <th></th>\n",
639
  " <th>log</th>\n",
640
- " <th>n_traces</th>\n",
641
- " <th>n_unique_traces</th>\n",
642
- " <th>ratio_unique_traces_per_trace</th>\n",
643
- " <th>trace_len_min</th>\n",
644
- " <th>trace_len_max</th>\n",
645
- " <th>trace_len_mean</th>\n",
646
- " <th>trace_len_median</th>\n",
647
- " <th>trace_len_mode</th>\n",
648
- " <th>trace_len_std</th>\n",
649
- " <th>...</th>\n",
650
- " <th>within_day_time_iqr</th>\n",
651
- " <th>within_day_time_geometric_mean</th>\n",
652
- " <th>within_day_time_geometric_std</th>\n",
653
- " <th>within_day_time_harmonic_mean</th>\n",
654
- " <th>within_day_time_skewness</th>\n",
655
- " <th>within_day_time_kurtosis</th>\n",
656
- " <th>within_day_time_coefficient_variation</th>\n",
657
- " <th>within_day_time_entropy</th>\n",
658
- " <th>within_day_time_skewness_hist</th>\n",
659
- " <th>within_day_time_kurtosis_hist</th>\n",
660
  " </tr>\n",
661
  " </thead>\n",
662
  " <tbody>\n",
663
  " <tr>\n",
664
  " <th>0</th>\n",
665
- " <td>BPIC15_2</td>\n",
666
- " <td>832</td>\n",
667
- " <td>828</td>\n",
668
- " <td>0.995192</td>\n",
669
- " <td>1</td>\n",
670
- " <td>132</td>\n",
671
- " <td>53.310096</td>\n",
672
- " <td>54.0</td>\n",
673
- " <td>61</td>\n",
674
- " <td>19.894977</td>\n",
675
- " <td>...</td>\n",
676
- " <td>NaN</td>\n",
677
- " <td>NaN</td>\n",
678
- " <td>NaN</td>\n",
679
- " <td>NaN</td>\n",
680
- " <td>NaN</td>\n",
681
- " <td>NaN</td>\n",
682
- " <td>NaN</td>\n",
683
- " <td>NaN</td>\n",
684
- " <td>NaN</td>\n",
685
- " <td>NaN</td>\n",
686
  " </tr>\n",
687
  " <tr>\n",
688
  " <th>1</th>\n",
689
- " <td>BPI_Challenge_2018</td>\n",
690
- " <td>43809</td>\n",
691
- " <td>28457</td>\n",
692
- " <td>0.649570</td>\n",
693
- " <td>24</td>\n",
694
- " <td>2973</td>\n",
695
- " <td>57.391541</td>\n",
696
- " <td>49.0</td>\n",
697
- " <td>49</td>\n",
698
- " <td>34.872131</td>\n",
699
- " <td>...</td>\n",
700
- " <td>NaN</td>\n",
701
- " <td>NaN</td>\n",
702
- " <td>NaN</td>\n",
703
- " <td>NaN</td>\n",
704
- " <td>NaN</td>\n",
705
- " <td>NaN</td>\n",
706
- " <td>NaN</td>\n",
707
- " <td>NaN</td>\n",
708
- " <td>NaN</td>\n",
709
- " <td>NaN</td>\n",
710
  " </tr>\n",
711
  " <tr>\n",
712
  " <th>2</th>\n",
713
- " <td>Receipt_WABO_CoSeLoG</td>\n",
714
- " <td>1434</td>\n",
715
- " <td>116</td>\n",
716
- " <td>0.080893</td>\n",
717
- " <td>1</td>\n",
718
- " <td>25</td>\n",
719
- " <td>5.981172</td>\n",
720
- " <td>6.0</td>\n",
721
- " <td>6</td>\n",
722
- " <td>2.166129</td>\n",
723
- " <td>...</td>\n",
724
- " <td>NaN</td>\n",
725
- " <td>NaN</td>\n",
726
- " <td>NaN</td>\n",
727
- " <td>NaN</td>\n",
728
- " <td>NaN</td>\n",
729
- " <td>NaN</td>\n",
730
- " <td>NaN</td>\n",
731
- " <td>NaN</td>\n",
732
- " <td>NaN</td>\n",
733
- " <td>NaN</td>\n",
734
  " </tr>\n",
735
  " <tr>\n",
736
  " <th>3</th>\n",
737
- " <td>BPIC15_3</td>\n",
738
- " <td>1409</td>\n",
739
- " <td>1349</td>\n",
740
- " <td>0.957417</td>\n",
741
- " <td>3</td>\n",
742
- " <td>124</td>\n",
743
- " <td>42.356991</td>\n",
744
- " <td>42.0</td>\n",
745
- " <td>44</td>\n",
746
- " <td>16.138406</td>\n",
747
- " <td>...</td>\n",
748
- " <td>NaN</td>\n",
749
- " <td>NaN</td>\n",
750
- " <td>NaN</td>\n",
751
- " <td>NaN</td>\n",
752
- " <td>NaN</td>\n",
753
- " <td>NaN</td>\n",
754
- " <td>NaN</td>\n",
755
- " <td>NaN</td>\n",
756
- " <td>NaN</td>\n",
757
- " <td>NaN</td>\n",
758
  " </tr>\n",
759
  " <tr>\n",
760
  " <th>4</th>\n",
761
- " <td>BPI_Challenge_2019</td>\n",
762
- " <td>251734</td>\n",
763
- " <td>11973</td>\n",
764
- " <td>0.047562</td>\n",
765
- " <td>1</td>\n",
766
- " <td>990</td>\n",
767
- " <td>6.339720</td>\n",
768
- " <td>5.0</td>\n",
769
- " <td>5</td>\n",
770
- " <td>13.057417</td>\n",
771
- " <td>...</td>\n",
772
- " <td>NaN</td>\n",
773
- " <td>NaN</td>\n",
774
- " <td>NaN</td>\n",
775
- " <td>NaN</td>\n",
776
- " <td>NaN</td>\n",
777
- " <td>NaN</td>\n",
778
- " <td>NaN</td>\n",
779
- " <td>NaN</td>\n",
780
- " <td>NaN</td>\n",
781
- " <td>NaN</td>\n",
782
  " </tr>\n",
783
  " </tbody>\n",
784
  "</table>\n",
785
- "<p>5 rows × 178 columns</p>\n",
786
  "</div>"
787
  ],
788
  "text/plain": [
789
- " log n_traces n_unique_traces \n",
790
- "0 BPIC15_2 832 828 \\\n",
791
- "1 BPI_Challenge_2018 43809 28457 \n",
792
- "2 Receipt_WABO_CoSeLoG 1434 116 \n",
793
- "3 BPIC15_3 1409 1349 \n",
794
- "4 BPI_Challenge_2019 251734 11973 \n",
795
- "\n",
796
- " ratio_unique_traces_per_trace trace_len_min trace_len_max \n",
797
- "0 0.995192 1 132 \\\n",
798
- "1 0.649570 24 2973 \n",
799
- "2 0.080893 1 25 \n",
800
- "3 0.957417 3 124 \n",
801
- "4 0.047562 1 990 \n",
802
- "\n",
803
- " trace_len_mean trace_len_median trace_len_mode trace_len_std ... \n",
804
- "0 53.310096 54.0 61 19.894977 ... \\\n",
805
- "1 57.391541 49.0 49 34.872131 ... \n",
806
- "2 5.981172 6.0 6 2.166129 ... \n",
807
- "3 42.356991 42.0 44 16.138406 ... \n",
808
- "4 6.339720 5.0 5 13.057417 ... \n",
809
- "\n",
810
- " within_day_time_iqr within_day_time_geometric_mean \n",
811
- "0 NaN NaN \\\n",
812
- "1 NaN NaN \n",
813
- "2 NaN NaN \n",
814
- "3 NaN NaN \n",
815
- "4 NaN NaN \n",
816
- "\n",
817
- " within_day_time_geometric_std within_day_time_harmonic_mean \n",
818
- "0 NaN NaN \\\n",
819
- "1 NaN NaN \n",
820
- "2 NaN NaN \n",
821
- "3 NaN NaN \n",
822
- "4 NaN NaN \n",
823
  "\n",
824
- " within_day_time_skewness within_day_time_kurtosis \n",
825
- "0 NaN NaN \\\n",
826
- "1 NaN NaN \n",
827
- "2 NaN NaN \n",
828
- "3 NaN NaN \n",
829
- "4 NaN NaN \n",
830
  "\n",
831
- " within_day_time_coefficient_variation within_day_time_entropy \n",
832
- "0 NaN NaN \\\n",
833
- "1 NaN NaN \n",
834
- "2 NaN NaN \n",
835
- "3 NaN NaN \n",
836
- "4 NaN NaN \n",
837
  "\n",
838
- " within_day_time_skewness_hist within_day_time_kurtosis_hist \n",
839
- "0 NaN NaN \n",
840
- "1 NaN NaN \n",
841
- "2 NaN NaN \n",
842
- "3 NaN NaN \n",
843
- "4 NaN NaN \n",
844
  "\n",
845
- "[5 rows x 178 columns]"
 
 
 
 
 
846
  ]
847
  },
848
  "execution_count": 8,
@@ -879,18 +770,472 @@
879
  ]
880
  },
881
  {
882
- "ename": "KeyError",
883
- "evalue": "\"['ratio_variants_per_number_of_traces'] not in index\"",
884
- "output_type": "error",
885
- "traceback": [
886
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
887
- "\u001b[0;31mKeyError\u001b[0m Traceback (most recent call last)",
888
- "Input \u001b[0;32mIn [9]\u001b[0m, in \u001b[0;36m<cell line: 7>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 3\u001b[0m normalized_feature_names \u001b[38;5;241m=\u001b[39m [\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mratio_variants_per_number_of_traces\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mratio_most_common_variant\u001b[39m\u001b[38;5;124m'\u001b[39m, \n\u001b[1;32m 4\u001b[0m \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mratio_top_10_variants\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mepa_normalized_variant_entropy\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mepa_normalized_sequence_entropy\u001b[39m\u001b[38;5;124m'\u001b[39m, \n\u001b[1;32m 5\u001b[0m \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mepa_normalized_sequence_entropy_linear_forgetting\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mepa_normalized_sequence_entropy_exponential_forgetting\u001b[39m\u001b[38;5;124m'\u001b[39m]\n\u001b[1;32m 6\u001b[0m \u001b[38;5;28mprint\u001b[39m(normalized_feature_names)\n\u001b[0;32m----> 7\u001b[0m \u001b[43mbpic_features\u001b[49m\u001b[43m[\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mlog\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m]\u001b[49m\u001b[38;5;241;43m+\u001b[39;49m\u001b[43mnormalized_feature_names\u001b[49m\u001b[43m]\u001b[49m\n",
889
- "File \u001b[0;32m~/miniconda3/lib/python3.9/site-packages/pandas/core/frame.py:3767\u001b[0m, in \u001b[0;36mDataFrame.__getitem__\u001b[0;34m(self, key)\u001b[0m\n\u001b[1;32m 3765\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m is_iterator(key):\n\u001b[1;32m 3766\u001b[0m key \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mlist\u001b[39m(key)\n\u001b[0;32m-> 3767\u001b[0m indexer \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcolumns\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_get_indexer_strict\u001b[49m\u001b[43m(\u001b[49m\u001b[43mkey\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mcolumns\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m[\u001b[38;5;241m1\u001b[39m]\n\u001b[1;32m 3769\u001b[0m \u001b[38;5;66;03m# take() does not accept boolean indexers\u001b[39;00m\n\u001b[1;32m 3770\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mgetattr\u001b[39m(indexer, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mdtype\u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;28;01mNone\u001b[39;00m) \u001b[38;5;241m==\u001b[39m \u001b[38;5;28mbool\u001b[39m:\n",
890
- "File \u001b[0;32m~/miniconda3/lib/python3.9/site-packages/pandas/core/indexes/base.py:5876\u001b[0m, in \u001b[0;36mIndex._get_indexer_strict\u001b[0;34m(self, key, axis_name)\u001b[0m\n\u001b[1;32m 5873\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[1;32m 5874\u001b[0m keyarr, indexer, new_indexer \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_reindex_non_unique(keyarr)\n\u001b[0;32m-> 5876\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_raise_if_missing\u001b[49m\u001b[43m(\u001b[49m\u001b[43mkeyarr\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mindexer\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43maxis_name\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 5878\u001b[0m keyarr \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mtake(indexer)\n\u001b[1;32m 5879\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(key, Index):\n\u001b[1;32m 5880\u001b[0m \u001b[38;5;66;03m# GH 42790 - Preserve name from an Index\u001b[39;00m\n",
891
- "File \u001b[0;32m~/miniconda3/lib/python3.9/site-packages/pandas/core/indexes/base.py:5938\u001b[0m, in \u001b[0;36mIndex._raise_if_missing\u001b[0;34m(self, key, indexer, axis_name)\u001b[0m\n\u001b[1;32m 5935\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mKeyError\u001b[39;00m(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mNone of [\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mkey\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m] are in the [\u001b[39m\u001b[38;5;132;01m{\u001b[39;00maxis_name\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m]\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[1;32m 5937\u001b[0m not_found \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mlist\u001b[39m(ensure_index(key)[missing_mask\u001b[38;5;241m.\u001b[39mnonzero()[\u001b[38;5;241m0\u001b[39m]]\u001b[38;5;241m.\u001b[39munique())\n\u001b[0;32m-> 5938\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mKeyError\u001b[39;00m(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mnot_found\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m not in index\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n",
892
- "\u001b[0;31mKeyError\u001b[0m: \"['ratio_variants_per_number_of_traces'] not in index\""
893
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
894
  }
895
  ],
896
  "source": [
@@ -905,10 +1250,40 @@
905
  },
906
  {
907
  "cell_type": "code",
908
- "execution_count": null,
909
  "id": "44909860",
910
  "metadata": {},
911
- "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
912
  "source": [
913
  "#Features between 0 and 1: \n",
914
  "def write_generator_bpic_experiment(objectives, n_para_obj=2):\n",
@@ -990,10 +1365,34 @@
990
  },
991
  {
992
  "cell_type": "code",
993
- "execution_count": null,
994
  "id": "d759a677",
995
  "metadata": {},
996
- "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
997
  "source": [
998
  "def write_single_objective_experiment(experiment_path, objectives=[\"ratio_top_20_variants\", \"epa_normalized_sequence_entropy_linear_forgetting\"]):\n",
999
  " first_dir = os.path.split(experiment_path[3:])[-1].replace(\".csv\",\"\")\n",
 
72
  "name": "stdout",
73
  "output_type": "stream",
74
  "text": [
75
+ "21 [('epa_normalized_sequence_entropy_exponential_forgetting', 'ratio_top_10_variants'), ('ratio_most_common_variant', 'ratio_top_10_variants'), ('epa_normalized_variant_entropy', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'epa_normalized_variant_entropy'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'ratio_most_common_variant'), ('ratio_top_10_variants', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy', 'epa_normalized_sequence_entropy_linear_forgetting'), ('epa_normalized_sequence_entropy', 'ratio_top_10_variants'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'ratio_variants_per_number_of_traces'), ('ratio_most_common_variant', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy', 'epa_normalized_variant_entropy'), ('epa_normalized_sequence_entropy', 'ratio_most_common_variant'), ('epa_normalized_sequence_entropy', 'epa_normalized_sequence_entropy_exponential_forgetting'), ('epa_normalized_sequence_entropy', 'ratio_variants_per_number_of_traces'), ('epa_normalized_sequence_entropy_linear_forgetting', 'ratio_top_10_variants'), ('epa_normalized_sequence_entropy_linear_forgetting', 'epa_normalized_variant_entropy'), ('epa_normalized_sequence_entropy_linear_forgetting', 'ratio_most_common_variant'), ('epa_normalized_variant_entropy', 'ratio_top_10_variants'), ('epa_normalized_sequence_entropy_linear_forgetting', 'ratio_variants_per_number_of_traces'), ('epa_normalized_variant_entropy', 'ratio_most_common_variant'), ('epa_normalized_sequence_entropy_exponential_forgetting', 'epa_normalized_sequence_entropy_linear_forgetting')]\n",
76
  "121\n",
77
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_rt10v.csv\n",
78
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_rt10v.json\n",
79
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_rmcv_rt10v.csv\n",
80
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_rmcv_rt10v.json\n",
81
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enve_rvpnot.csv\n",
82
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enve_rvpnot.json\n",
83
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_enve.csv\n",
84
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_enve.json\n",
 
 
 
 
85
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_rmcv.csv\n",
86
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_rmcv.json\n",
87
  "Saved experiment in ../data/grid_2obj/grid_2objectives_rt10v_rvpnot.csv\n",
88
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_rt10v_rvpnot.json\n",
89
  "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_enself.csv\n",
90
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_enself.json\n",
91
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_rt10v.csv\n",
92
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_rt10v.json\n",
93
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_rvpnot.csv\n",
94
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_rvpnot.json\n",
95
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_rmcv_rvpnot.csv\n",
96
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_rmcv_rvpnot.json\n",
97
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_enve.csv\n",
98
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_enve.json\n",
99
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_rmcv.csv\n",
100
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_rmcv.json\n",
101
  "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_enseef.csv\n",
102
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_enseef.json\n",
103
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_ense_rvpnot.csv\n",
104
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_ense_rvpnot.json\n",
105
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_rt10v.csv\n",
106
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_rt10v.json\n",
107
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_enve.csv\n",
108
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_enve.json\n",
109
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_rmcv.csv\n",
110
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_rmcv.json\n",
111
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enve_rt10v.csv\n",
112
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enve_rt10v.json\n",
113
+ "Saved experiment in ../data/grid_2obj/grid_2objectives_enself_rvpnot.csv\n",
114
+ "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enself_rvpnot.json\n",
115
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enve_rmcv.csv\n",
116
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enve_rmcv.json\n",
117
  "Saved experiment in ../data/grid_2obj/grid_2objectives_enseef_enself.csv\n",
118
  "Saved experiment config in ../config_files/algorithm/grid_2obj/generator_grid_2objectives_enseef_enself.json\n",
 
 
 
 
 
 
119
  "None\n"
120
  ]
121
  }
 
601
  "name": "stdout",
602
  "output_type": "stream",
603
  "text": [
604
+ "(26, 8)\n",
605
+ "26 Event-Logs: ['BPIC12' 'BPIC13cp' 'BPIC13inc' 'BPIC13op' 'BPIC14dc_p' 'BPIC14di_p'\n",
606
+ " 'BPIC14dia_p' 'BPIC15f1' 'BPIC15f2' 'BPIC15f3' 'BPIC15f4' 'BPIC15f5'\n",
607
+ " 'BPIC16c_p' 'BPIC16wm_p' 'BPIC17' 'BPIC17ol' 'BPIC19' 'BPIC20a' 'BPIC20b'\n",
608
+ " 'BPIC20c' 'BPIC20d' 'BPIC20e' 'HD' 'RTFMP' 'RWABOCSL' 'SEPSIS']\n"
 
 
 
 
 
 
 
609
  ]
610
  },
611
  {
 
630
  " <tr style=\"text-align: right;\">\n",
631
  " <th></th>\n",
632
  " <th>log</th>\n",
633
+ " <th>ratio_variants_per_number_of_traces</th>\n",
634
+ " <th>ratio_most_common_variant</th>\n",
635
+ " <th>ratio_top_10_variants</th>\n",
636
+ " <th>epa_normalized_variant_entropy</th>\n",
637
+ " <th>epa_normalized_sequence_entropy</th>\n",
638
+ " <th>epa_normalized_sequence_entropy_linear_forgetting</th>\n",
639
+ " <th>epa_normalized_sequence_entropy_exponential_forgetting</th>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
640
  " </tr>\n",
641
  " </thead>\n",
642
  " <tbody>\n",
643
  " <tr>\n",
644
  " <th>0</th>\n",
645
+ " <td>BPIC16wm_p</td>\n",
646
+ " <td>0.002882</td>\n",
647
+ " <td>0.295803</td>\n",
648
+ " <td>0.714106</td>\n",
649
+ " <td>0.000000</td>\n",
650
+ " <td>0.000000</td>\n",
651
+ " <td>0.000000</td>\n",
652
+ " <td>0.000000</td>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
653
  " </tr>\n",
654
  " <tr>\n",
655
  " <th>1</th>\n",
656
+ " <td>BPIC15f5</td>\n",
657
+ " <td>0.997405</td>\n",
658
+ " <td>0.001730</td>\n",
659
+ " <td>0.102076</td>\n",
660
+ " <td>0.648702</td>\n",
661
+ " <td>0.603260</td>\n",
662
+ " <td>0.342410</td>\n",
663
+ " <td>0.404580</td>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
664
  " </tr>\n",
665
  " <tr>\n",
666
  " <th>2</th>\n",
667
+ " <td>BPIC15f1</td>\n",
668
+ " <td>0.975813</td>\n",
669
+ " <td>0.006672</td>\n",
670
+ " <td>0.121768</td>\n",
671
+ " <td>0.652855</td>\n",
672
+ " <td>0.610294</td>\n",
673
+ " <td>0.270241</td>\n",
674
+ " <td>0.363928</td>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
675
  " </tr>\n",
676
  " <tr>\n",
677
  " <th>3</th>\n",
678
+ " <td>BPIC19</td>\n",
679
+ " <td>0.047562</td>\n",
680
+ " <td>0.199758</td>\n",
681
+ " <td>0.946368</td>\n",
682
+ " <td>0.645530</td>\n",
683
+ " <td>0.328029</td>\n",
684
+ " <td>0.320185</td>\n",
685
+ " <td>0.320282</td>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
686
  " </tr>\n",
687
  " <tr>\n",
688
  " <th>4</th>\n",
689
+ " <td>BPIC14dia_p</td>\n",
690
+ " <td>0.496847</td>\n",
691
+ " <td>0.037455</td>\n",
692
+ " <td>0.552836</td>\n",
693
+ " <td>0.774743</td>\n",
694
+ " <td>0.608350</td>\n",
695
+ " <td>0.305614</td>\n",
696
+ " <td>0.377416</td>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
697
  " </tr>\n",
698
  " </tbody>\n",
699
  "</table>\n",
 
700
  "</div>"
701
  ],
702
  "text/plain": [
703
+ " log ratio_variants_per_number_of_traces \n",
704
+ "0 BPIC16wm_p 0.002882 \\\n",
705
+ "1 BPIC15f5 0.997405 \n",
706
+ "2 BPIC15f1 0.975813 \n",
707
+ "3 BPIC19 0.047562 \n",
708
+ "4 BPIC14dia_p 0.496847 \n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
709
  "\n",
710
+ " ratio_most_common_variant ratio_top_10_variants \n",
711
+ "0 0.295803 0.714106 \\\n",
712
+ "1 0.001730 0.102076 \n",
713
+ "2 0.006672 0.121768 \n",
714
+ "3 0.199758 0.946368 \n",
715
+ "4 0.037455 0.552836 \n",
716
  "\n",
717
+ " epa_normalized_variant_entropy epa_normalized_sequence_entropy \n",
718
+ "0 0.000000 0.000000 \\\n",
719
+ "1 0.648702 0.603260 \n",
720
+ "2 0.652855 0.610294 \n",
721
+ "3 0.645530 0.328029 \n",
722
+ "4 0.774743 0.608350 \n",
723
  "\n",
724
+ " epa_normalized_sequence_entropy_linear_forgetting \n",
725
+ "0 0.000000 \\\n",
726
+ "1 0.342410 \n",
727
+ "2 0.270241 \n",
728
+ "3 0.320185 \n",
729
+ "4 0.305614 \n",
730
  "\n",
731
+ " epa_normalized_sequence_entropy_exponential_forgetting \n",
732
+ "0 0.000000 \n",
733
+ "1 0.404580 \n",
734
+ "2 0.363928 \n",
735
+ "3 0.320282 \n",
736
+ "4 0.377416 "
737
  ]
738
  },
739
  "execution_count": 8,
 
770
  ]
771
  },
772
  {
773
+ "data": {
774
+ "text/html": [
775
+ "<div>\n",
776
+ "<style scoped>\n",
777
+ " .dataframe tbody tr th:only-of-type {\n",
778
+ " vertical-align: middle;\n",
779
+ " }\n",
780
+ "\n",
781
+ " .dataframe tbody tr th {\n",
782
+ " vertical-align: top;\n",
783
+ " }\n",
784
+ "\n",
785
+ " .dataframe thead th {\n",
786
+ " text-align: right;\n",
787
+ " }\n",
788
+ "</style>\n",
789
+ "<table border=\"1\" class=\"dataframe\">\n",
790
+ " <thead>\n",
791
+ " <tr style=\"text-align: right;\">\n",
792
+ " <th></th>\n",
793
+ " <th>log</th>\n",
794
+ " <th>ratio_variants_per_number_of_traces</th>\n",
795
+ " <th>ratio_most_common_variant</th>\n",
796
+ " <th>ratio_top_10_variants</th>\n",
797
+ " <th>epa_normalized_variant_entropy</th>\n",
798
+ " <th>epa_normalized_sequence_entropy</th>\n",
799
+ " <th>epa_normalized_sequence_entropy_linear_forgetting</th>\n",
800
+ " <th>epa_normalized_sequence_entropy_exponential_forgetting</th>\n",
801
+ " </tr>\n",
802
+ " </thead>\n",
803
+ " <tbody>\n",
804
+ " <tr>\n",
805
+ " <th>0</th>\n",
806
+ " <td>BPIC16wm_p</td>\n",
807
+ " <td>0.002882</td>\n",
808
+ " <td>0.295803</td>\n",
809
+ " <td>0.714106</td>\n",
810
+ " <td>0.000000</td>\n",
811
+ " <td>0.000000</td>\n",
812
+ " <td>0.000000</td>\n",
813
+ " <td>0.000000</td>\n",
814
+ " </tr>\n",
815
+ " <tr>\n",
816
+ " <th>1</th>\n",
817
+ " <td>BPIC15f5</td>\n",
818
+ " <td>0.997405</td>\n",
819
+ " <td>0.001730</td>\n",
820
+ " <td>0.102076</td>\n",
821
+ " <td>0.648702</td>\n",
822
+ " <td>0.603260</td>\n",
823
+ " <td>0.342410</td>\n",
824
+ " <td>0.404580</td>\n",
825
+ " </tr>\n",
826
+ " <tr>\n",
827
+ " <th>2</th>\n",
828
+ " <td>BPIC15f1</td>\n",
829
+ " <td>0.975813</td>\n",
830
+ " <td>0.006672</td>\n",
831
+ " <td>0.121768</td>\n",
832
+ " <td>0.652855</td>\n",
833
+ " <td>0.610294</td>\n",
834
+ " <td>0.270241</td>\n",
835
+ " <td>0.363928</td>\n",
836
+ " </tr>\n",
837
+ " <tr>\n",
838
+ " <th>3</th>\n",
839
+ " <td>BPIC19</td>\n",
840
+ " <td>0.047562</td>\n",
841
+ " <td>0.199758</td>\n",
842
+ " <td>0.946368</td>\n",
843
+ " <td>0.645530</td>\n",
844
+ " <td>0.328029</td>\n",
845
+ " <td>0.320185</td>\n",
846
+ " <td>0.320282</td>\n",
847
+ " </tr>\n",
848
+ " <tr>\n",
849
+ " <th>4</th>\n",
850
+ " <td>BPIC14dia_p</td>\n",
851
+ " <td>0.496847</td>\n",
852
+ " <td>0.037455</td>\n",
853
+ " <td>0.552836</td>\n",
854
+ " <td>0.774743</td>\n",
855
+ " <td>0.608350</td>\n",
856
+ " <td>0.305614</td>\n",
857
+ " <td>0.377416</td>\n",
858
+ " </tr>\n",
859
+ " <tr>\n",
860
+ " <th>5</th>\n",
861
+ " <td>BPIC15f2</td>\n",
862
+ " <td>0.995192</td>\n",
863
+ " <td>0.002404</td>\n",
864
+ " <td>0.103365</td>\n",
865
+ " <td>0.627973</td>\n",
866
+ " <td>0.602371</td>\n",
867
+ " <td>0.317217</td>\n",
868
+ " <td>0.390473</td>\n",
869
+ " </tr>\n",
870
+ " <tr>\n",
871
+ " <th>6</th>\n",
872
+ " <td>BPIC15f3</td>\n",
873
+ " <td>0.957417</td>\n",
874
+ " <td>0.010646</td>\n",
875
+ " <td>0.137686</td>\n",
876
+ " <td>0.661781</td>\n",
877
+ " <td>0.605676</td>\n",
878
+ " <td>0.341521</td>\n",
879
+ " <td>0.404934</td>\n",
880
+ " </tr>\n",
881
+ " <tr>\n",
882
+ " <th>7</th>\n",
883
+ " <td>BPIC13cp</td>\n",
884
+ " <td>0.123067</td>\n",
885
+ " <td>0.331540</td>\n",
886
+ " <td>0.840619</td>\n",
887
+ " <td>0.705383</td>\n",
888
+ " <td>0.310940</td>\n",
889
+ " <td>0.286515</td>\n",
890
+ " <td>0.288383</td>\n",
891
+ " </tr>\n",
892
+ " <tr>\n",
893
+ " <th>8</th>\n",
894
+ " <td>BPIC14dc_p</td>\n",
895
+ " <td>0.048444</td>\n",
896
+ " <td>0.074944</td>\n",
897
+ " <td>0.765056</td>\n",
898
+ " <td>0.470758</td>\n",
899
+ " <td>0.419266</td>\n",
900
+ " <td>0.312599</td>\n",
901
+ " <td>0.326719</td>\n",
902
+ " </tr>\n",
903
+ " <tr>\n",
904
+ " <th>9</th>\n",
905
+ " <td>BPIC20a</td>\n",
906
+ " <td>0.009429</td>\n",
907
+ " <td>0.439810</td>\n",
908
+ " <td>0.950095</td>\n",
909
+ " <td>0.696474</td>\n",
910
+ " <td>0.164758</td>\n",
911
+ " <td>0.085439</td>\n",
912
+ " <td>0.104389</td>\n",
913
+ " </tr>\n",
914
+ " <tr>\n",
915
+ " <th>10</th>\n",
916
+ " <td>BPIC14di_p</td>\n",
917
+ " <td>0.000041</td>\n",
918
+ " <td>0.787081</td>\n",
919
+ " <td>0.000000</td>\n",
920
+ " <td>1.000000</td>\n",
921
+ " <td>0.044018</td>\n",
922
+ " <td>0.033322</td>\n",
923
+ " <td>0.034685</td>\n",
924
+ " </tr>\n",
925
+ " <tr>\n",
926
+ " <th>11</th>\n",
927
+ " <td>BPIC17ol</td>\n",
928
+ " <td>0.000372</td>\n",
929
+ " <td>0.380626</td>\n",
930
+ " <td>0.380626</td>\n",
931
+ " <td>0.813479</td>\n",
932
+ " <td>0.105130</td>\n",
933
+ " <td>0.052672</td>\n",
934
+ " <td>0.066000</td>\n",
935
+ " </tr>\n",
936
+ " <tr>\n",
937
+ " <th>12</th>\n",
938
+ " <td>BPIC13op</td>\n",
939
+ " <td>0.131868</td>\n",
940
+ " <td>0.217338</td>\n",
941
+ " <td>0.769231</td>\n",
942
+ " <td>0.702960</td>\n",
943
+ " <td>0.276771</td>\n",
944
+ " <td>0.262094</td>\n",
945
+ " <td>0.263029</td>\n",
946
+ " </tr>\n",
947
+ " <tr>\n",
948
+ " <th>13</th>\n",
949
+ " <td>RTFMP</td>\n",
950
+ " <td>0.001536</td>\n",
951
+ " <td>0.375620</td>\n",
952
+ " <td>0.993104</td>\n",
953
+ " <td>0.769353</td>\n",
954
+ " <td>0.111932</td>\n",
955
+ " <td>0.052586</td>\n",
956
+ " <td>0.068442</td>\n",
957
+ " </tr>\n",
958
+ " <tr>\n",
959
+ " <th>14</th>\n",
960
+ " <td>BPIC20d</td>\n",
961
+ " <td>0.096236</td>\n",
962
+ " <td>0.271081</td>\n",
963
+ " <td>0.822773</td>\n",
964
+ " <td>0.723785</td>\n",
965
+ " <td>0.317044</td>\n",
966
+ " <td>0.184879</td>\n",
967
+ " <td>0.214387</td>\n",
968
+ " </tr>\n",
969
+ " <tr>\n",
970
+ " <th>15</th>\n",
971
+ " <td>BPIC12</td>\n",
972
+ " <td>0.333614</td>\n",
973
+ " <td>0.262016</td>\n",
974
+ " <td>0.686254</td>\n",
975
+ " <td>0.708280</td>\n",
976
+ " <td>0.423074</td>\n",
977
+ " <td>0.226133</td>\n",
978
+ " <td>0.275551</td>\n",
979
+ " </tr>\n",
980
+ " <tr>\n",
981
+ " <th>16</th>\n",
982
+ " <td>RWABOCSL</td>\n",
983
+ " <td>0.080893</td>\n",
984
+ " <td>0.497211</td>\n",
985
+ " <td>0.887029</td>\n",
986
+ " <td>0.689363</td>\n",
987
+ " <td>0.235532</td>\n",
988
+ " <td>0.100603</td>\n",
989
+ " <td>0.138113</td>\n",
990
+ " </tr>\n",
991
+ " <tr>\n",
992
+ " <th>17</th>\n",
993
+ " <td>BPIC20e</td>\n",
994
+ " <td>0.012925</td>\n",
995
+ " <td>0.437264</td>\n",
996
+ " <td>0.933488</td>\n",
997
+ " <td>0.703735</td>\n",
998
+ " <td>0.189048</td>\n",
999
+ " <td>0.097572</td>\n",
1000
+ " <td>0.118744</td>\n",
1001
+ " </tr>\n",
1002
+ " <tr>\n",
1003
+ " <th>18</th>\n",
1004
+ " <td>BPIC16c_p</td>\n",
1005
+ " <td>0.438053</td>\n",
1006
+ " <td>0.101770</td>\n",
1007
+ " <td>0.424779</td>\n",
1008
+ " <td>0.899497</td>\n",
1009
+ " <td>0.683796</td>\n",
1010
+ " <td>0.404685</td>\n",
1011
+ " <td>0.470116</td>\n",
1012
+ " </tr>\n",
1013
+ " <tr>\n",
1014
+ " <th>19</th>\n",
1015
+ " <td>BPIC13inc</td>\n",
1016
+ " <td>0.200026</td>\n",
1017
+ " <td>0.232195</td>\n",
1018
+ " <td>0.794414</td>\n",
1019
+ " <td>0.717846</td>\n",
1020
+ " <td>0.404651</td>\n",
1021
+ " <td>0.391097</td>\n",
1022
+ " <td>0.391625</td>\n",
1023
+ " </tr>\n",
1024
+ " <tr>\n",
1025
+ " <th>20</th>\n",
1026
+ " <td>BPIC15f4</td>\n",
1027
+ " <td>0.996201</td>\n",
1028
+ " <td>0.002849</td>\n",
1029
+ " <td>0.102564</td>\n",
1030
+ " <td>0.652985</td>\n",
1031
+ " <td>0.603866</td>\n",
1032
+ " <td>0.355927</td>\n",
1033
+ " <td>0.412835</td>\n",
1034
+ " </tr>\n",
1035
+ " <tr>\n",
1036
+ " <th>21</th>\n",
1037
+ " <td>BPIC17</td>\n",
1038
+ " <td>0.505570</td>\n",
1039
+ " <td>0.033514</td>\n",
1040
+ " <td>0.531340</td>\n",
1041
+ " <td>0.741706</td>\n",
1042
+ " <td>0.461565</td>\n",
1043
+ " <td>0.231922</td>\n",
1044
+ " <td>0.290464</td>\n",
1045
+ " </tr>\n",
1046
+ " <tr>\n",
1047
+ " <th>22</th>\n",
1048
+ " <td>BPIC20c</td>\n",
1049
+ " <td>0.209200</td>\n",
1050
+ " <td>0.135315</td>\n",
1051
+ " <td>0.757537</td>\n",
1052
+ " <td>0.733653</td>\n",
1053
+ " <td>0.420150</td>\n",
1054
+ " <td>0.137287</td>\n",
1055
+ " <td>0.215490</td>\n",
1056
+ " </tr>\n",
1057
+ " <tr>\n",
1058
+ " <th>23</th>\n",
1059
+ " <td>BPIC20b</td>\n",
1060
+ " <td>0.116762</td>\n",
1061
+ " <td>0.212281</td>\n",
1062
+ " <td>0.811289</td>\n",
1063
+ " <td>0.758268</td>\n",
1064
+ " <td>0.339380</td>\n",
1065
+ " <td>0.145611</td>\n",
1066
+ " <td>0.193753</td>\n",
1067
+ " </tr>\n",
1068
+ " <tr>\n",
1069
+ " <th>24</th>\n",
1070
+ " <td>HD</td>\n",
1071
+ " <td>0.049345</td>\n",
1072
+ " <td>0.516594</td>\n",
1073
+ " <td>0.906332</td>\n",
1074
+ " <td>0.799120</td>\n",
1075
+ " <td>0.254066</td>\n",
1076
+ " <td>0.118478</td>\n",
1077
+ " <td>0.154576</td>\n",
1078
+ " </tr>\n",
1079
+ " <tr>\n",
1080
+ " <th>25</th>\n",
1081
+ " <td>SEPSIS</td>\n",
1082
+ " <td>0.805714</td>\n",
1083
+ " <td>0.033333</td>\n",
1084
+ " <td>0.274286</td>\n",
1085
+ " <td>0.695759</td>\n",
1086
+ " <td>0.522343</td>\n",
1087
+ " <td>0.219365</td>\n",
1088
+ " <td>0.299505</td>\n",
1089
+ " </tr>\n",
1090
+ " </tbody>\n",
1091
+ "</table>\n",
1092
+ "</div>"
1093
+ ],
1094
+ "text/plain": [
1095
+ " log ratio_variants_per_number_of_traces \n",
1096
+ "0 BPIC16wm_p 0.002882 \\\n",
1097
+ "1 BPIC15f5 0.997405 \n",
1098
+ "2 BPIC15f1 0.975813 \n",
1099
+ "3 BPIC19 0.047562 \n",
1100
+ "4 BPIC14dia_p 0.496847 \n",
1101
+ "5 BPIC15f2 0.995192 \n",
1102
+ "6 BPIC15f3 0.957417 \n",
1103
+ "7 BPIC13cp 0.123067 \n",
1104
+ "8 BPIC14dc_p 0.048444 \n",
1105
+ "9 BPIC20a 0.009429 \n",
1106
+ "10 BPIC14di_p 0.000041 \n",
1107
+ "11 BPIC17ol 0.000372 \n",
1108
+ "12 BPIC13op 0.131868 \n",
1109
+ "13 RTFMP 0.001536 \n",
1110
+ "14 BPIC20d 0.096236 \n",
1111
+ "15 BPIC12 0.333614 \n",
1112
+ "16 RWABOCSL 0.080893 \n",
1113
+ "17 BPIC20e 0.012925 \n",
1114
+ "18 BPIC16c_p 0.438053 \n",
1115
+ "19 BPIC13inc 0.200026 \n",
1116
+ "20 BPIC15f4 0.996201 \n",
1117
+ "21 BPIC17 0.505570 \n",
1118
+ "22 BPIC20c 0.209200 \n",
1119
+ "23 BPIC20b 0.116762 \n",
1120
+ "24 HD 0.049345 \n",
1121
+ "25 SEPSIS 0.805714 \n",
1122
+ "\n",
1123
+ " ratio_most_common_variant ratio_top_10_variants \n",
1124
+ "0 0.295803 0.714106 \\\n",
1125
+ "1 0.001730 0.102076 \n",
1126
+ "2 0.006672 0.121768 \n",
1127
+ "3 0.199758 0.946368 \n",
1128
+ "4 0.037455 0.552836 \n",
1129
+ "5 0.002404 0.103365 \n",
1130
+ "6 0.010646 0.137686 \n",
1131
+ "7 0.331540 0.840619 \n",
1132
+ "8 0.074944 0.765056 \n",
1133
+ "9 0.439810 0.950095 \n",
1134
+ "10 0.787081 0.000000 \n",
1135
+ "11 0.380626 0.380626 \n",
1136
+ "12 0.217338 0.769231 \n",
1137
+ "13 0.375620 0.993104 \n",
1138
+ "14 0.271081 0.822773 \n",
1139
+ "15 0.262016 0.686254 \n",
1140
+ "16 0.497211 0.887029 \n",
1141
+ "17 0.437264 0.933488 \n",
1142
+ "18 0.101770 0.424779 \n",
1143
+ "19 0.232195 0.794414 \n",
1144
+ "20 0.002849 0.102564 \n",
1145
+ "21 0.033514 0.531340 \n",
1146
+ "22 0.135315 0.757537 \n",
1147
+ "23 0.212281 0.811289 \n",
1148
+ "24 0.516594 0.906332 \n",
1149
+ "25 0.033333 0.274286 \n",
1150
+ "\n",
1151
+ " epa_normalized_variant_entropy epa_normalized_sequence_entropy \n",
1152
+ "0 0.000000 0.000000 \\\n",
1153
+ "1 0.648702 0.603260 \n",
1154
+ "2 0.652855 0.610294 \n",
1155
+ "3 0.645530 0.328029 \n",
1156
+ "4 0.774743 0.608350 \n",
1157
+ "5 0.627973 0.602371 \n",
1158
+ "6 0.661781 0.605676 \n",
1159
+ "7 0.705383 0.310940 \n",
1160
+ "8 0.470758 0.419266 \n",
1161
+ "9 0.696474 0.164758 \n",
1162
+ "10 1.000000 0.044018 \n",
1163
+ "11 0.813479 0.105130 \n",
1164
+ "12 0.702960 0.276771 \n",
1165
+ "13 0.769353 0.111932 \n",
1166
+ "14 0.723785 0.317044 \n",
1167
+ "15 0.708280 0.423074 \n",
1168
+ "16 0.689363 0.235532 \n",
1169
+ "17 0.703735 0.189048 \n",
1170
+ "18 0.899497 0.683796 \n",
1171
+ "19 0.717846 0.404651 \n",
1172
+ "20 0.652985 0.603866 \n",
1173
+ "21 0.741706 0.461565 \n",
1174
+ "22 0.733653 0.420150 \n",
1175
+ "23 0.758268 0.339380 \n",
1176
+ "24 0.799120 0.254066 \n",
1177
+ "25 0.695759 0.522343 \n",
1178
+ "\n",
1179
+ " epa_normalized_sequence_entropy_linear_forgetting \n",
1180
+ "0 0.000000 \\\n",
1181
+ "1 0.342410 \n",
1182
+ "2 0.270241 \n",
1183
+ "3 0.320185 \n",
1184
+ "4 0.305614 \n",
1185
+ "5 0.317217 \n",
1186
+ "6 0.341521 \n",
1187
+ "7 0.286515 \n",
1188
+ "8 0.312599 \n",
1189
+ "9 0.085439 \n",
1190
+ "10 0.033322 \n",
1191
+ "11 0.052672 \n",
1192
+ "12 0.262094 \n",
1193
+ "13 0.052586 \n",
1194
+ "14 0.184879 \n",
1195
+ "15 0.226133 \n",
1196
+ "16 0.100603 \n",
1197
+ "17 0.097572 \n",
1198
+ "18 0.404685 \n",
1199
+ "19 0.391097 \n",
1200
+ "20 0.355927 \n",
1201
+ "21 0.231922 \n",
1202
+ "22 0.137287 \n",
1203
+ "23 0.145611 \n",
1204
+ "24 0.118478 \n",
1205
+ "25 0.219365 \n",
1206
+ "\n",
1207
+ " epa_normalized_sequence_entropy_exponential_forgetting \n",
1208
+ "0 0.000000 \n",
1209
+ "1 0.404580 \n",
1210
+ "2 0.363928 \n",
1211
+ "3 0.320282 \n",
1212
+ "4 0.377416 \n",
1213
+ "5 0.390473 \n",
1214
+ "6 0.404934 \n",
1215
+ "7 0.288383 \n",
1216
+ "8 0.326719 \n",
1217
+ "9 0.104389 \n",
1218
+ "10 0.034685 \n",
1219
+ "11 0.066000 \n",
1220
+ "12 0.263029 \n",
1221
+ "13 0.068442 \n",
1222
+ "14 0.214387 \n",
1223
+ "15 0.275551 \n",
1224
+ "16 0.138113 \n",
1225
+ "17 0.118744 \n",
1226
+ "18 0.470116 \n",
1227
+ "19 0.391625 \n",
1228
+ "20 0.412835 \n",
1229
+ "21 0.290464 \n",
1230
+ "22 0.215490 \n",
1231
+ "23 0.193753 \n",
1232
+ "24 0.154576 \n",
1233
+ "25 0.299505 "
1234
+ ]
1235
+ },
1236
+ "execution_count": 9,
1237
+ "metadata": {},
1238
+ "output_type": "execute_result"
1239
  }
1240
  ],
1241
  "source": [
 
1250
  },
1251
  {
1252
  "cell_type": "code",
1253
+ "execution_count": 10,
1254
  "id": "44909860",
1255
  "metadata": {},
1256
+ "outputs": [
1257
+ {
1258
+ "name": "stdout",
1259
+ "output_type": "stream",
1260
+ "text": [
1261
+ "21\n",
1262
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enseef_rt10v.json\n",
1263
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_rmcv_rt10v.json\n",
1264
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enve_rvpnot.json\n",
1265
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enseef_enve.json\n",
1266
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enseef_rmcv.json\n",
1267
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_rt10v_rvpnot.json\n",
1268
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_ense_enself.json\n",
1269
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_ense_rt10v.json\n",
1270
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enseef_rvpnot.json\n",
1271
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_rmcv_rvpnot.json\n",
1272
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_ense_enve.json\n",
1273
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_ense_rmcv.json\n",
1274
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_ense_enseef.json\n",
1275
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_ense_rvpnot.json\n",
1276
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enself_rt10v.json\n",
1277
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enself_enve.json\n",
1278
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enself_rmcv.json\n",
1279
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enve_rt10v.json\n",
1280
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enself_rvpnot.json\n",
1281
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enve_rmcv.json\n",
1282
+ "Saved experiment config in ../config_files/algorithm/BaselineED_feat/generator_34bpic_2objectives_enseef_enself.json\n",
1283
+ "None\n"
1284
+ ]
1285
+ }
1286
+ ],
1287
  "source": [
1288
  "#Features between 0 and 1: \n",
1289
  "def write_generator_bpic_experiment(objectives, n_para_obj=2):\n",
 
1365
  },
1366
  {
1367
  "cell_type": "code",
1368
+ "execution_count": 11,
1369
  "id": "d759a677",
1370
  "metadata": {},
1371
+ "outputs": [
1372
+ {
1373
+ "name": "stdout",
1374
+ "output_type": "stream",
1375
+ "text": [
1376
+ "7 experiments: [('epa_normalized_sequence_entropy_exponential_forgetting',), ('epa_normalized_sequence_entropy_linear_forgetting',), ('ratio_top_10_variants',), ('ratio_variants_per_number_of_traces',), ('epa_normalized_sequence_entropy',), ('epa_normalized_variant_entropy',), ('ratio_most_common_variant',)]\n",
1377
+ "11\n",
1378
+ "Saved experiment in ../data/grid_experiments/grid_1objectives_enseef.csv\n",
1379
+ "Saved experiment config in ../config_files/algorithm/grid_experiments/generator_grid_1objectives_enseef.json\n",
1380
+ "Saved experiment in ../data/grid_experiments/grid_1objectives_enself.csv\n",
1381
+ "Saved experiment config in ../config_files/algorithm/grid_experiments/generator_grid_1objectives_enself.json\n",
1382
+ "Saved experiment in ../data/grid_experiments/grid_1objectives_rt10v.csv\n",
1383
+ "Saved experiment config in ../config_files/algorithm/grid_experiments/generator_grid_1objectives_rt10v.json\n",
1384
+ "Saved experiment in ../data/grid_experiments/grid_1objectives_rvpnot.csv\n",
1385
+ "Saved experiment config in ../config_files/algorithm/grid_experiments/generator_grid_1objectives_rvpnot.json\n",
1386
+ "Saved experiment in ../data/grid_experiments/grid_1objectives_ense.csv\n",
1387
+ "Saved experiment config in ../config_files/algorithm/grid_experiments/generator_grid_1objectives_ense.json\n",
1388
+ "Saved experiment in ../data/grid_experiments/grid_1objectives_enve.csv\n",
1389
+ "Saved experiment config in ../config_files/algorithm/grid_experiments/generator_grid_1objectives_enve.json\n",
1390
+ "Saved experiment in ../data/grid_experiments/grid_1objectives_rmcv.csv\n",
1391
+ "Saved experiment config in ../config_files/algorithm/grid_experiments/generator_grid_1objectives_rmcv.json\n",
1392
+ "None\n"
1393
+ ]
1394
+ }
1395
+ ],
1396
  "source": [
1397
  "def write_single_objective_experiment(experiment_path, objectives=[\"ratio_top_20_variants\", \"epa_normalized_sequence_entropy_linear_forgetting\"]):\n",
1398
  " first_dir = os.path.split(experiment_path[3:])[-1].replace(\".csv\",\"\")\n",