Andrea Maldonado commited on
Commit
e1621a0
·
1 Parent(s): c833c6c

Adds test for generation

Browse files
.github/workflows/test_gedi.yml CHANGED
@@ -8,7 +8,34 @@ on:
8
 
9
  # Specifies the jobs that are to be run
10
  jobs:
11
- test:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  runs-on: ubuntu-latest
13
 
14
  # Setting up a python envronment for the test script to run
 
8
 
9
  # Specifies the jobs that are to be run
10
  jobs:
11
+ test_generation:
12
+ runs-on: ubuntu-latest
13
+
14
+ # Setting up a python envronment for the test script to run
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v2
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v2
21
+ with:
22
+ python-version: 3.x
23
+
24
+ - name: Install dependencies
25
+ run: |
26
+ sudo apt install python3-packaging
27
+ - name: Install feeed
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ pip install .
31
+
32
+ - name: Run feature_extraction test
33
+ run:
34
+ python main.py -o config_files/options/baseline.json -a config_files/algorithm/generation.json
35
+
36
+ - name: Compare output
37
+ run: diff output/features/2_enself_rt20v/genEL2_02_07.json output/features/2_enself_rt20v/genEL2_02_07.json
38
+ test_feature-extraction:
39
  runs-on: ubuntu-latest
40
 
41
  # Setting up a python envronment for the test script to run
README.md CHANGED
@@ -32,7 +32,7 @@ python main.py -o config_files/options/baseline.json -a config_files/algorithm/e
32
  ## Usage
33
  Our pipeline offers several pipeline steps, which can be run sequentially or partially:
34
  - feature_extraction
35
- - event_logs_generation
36
  - benchmark
37
  - evaluation_plotter
38
 
 
32
  ## Usage
33
  Our pipeline offers several pipeline steps, which can be run sequentially or partially:
34
  - feature_extraction
35
+ - generation
36
  - benchmark
37
  - evaluation_plotter
38
 
config_files/algorithm/generation.json CHANGED
@@ -9,6 +9,10 @@
9
  "objectives": ["ratio_most_common_variant", "epa_normalized_sequence_entropy"],
10
  "objectives": ["ratio_top_20_variants","epa_normalized_sequence_entropy_linear_forgetting"]
11
  },
 
 
 
 
12
  "config_space": {
13
  "mode": [5, 20],
14
  "sequence": [0.01, 1],
 
9
  "objectives": ["ratio_most_common_variant", "epa_normalized_sequence_entropy"],
10
  "objectives": ["ratio_top_20_variants","epa_normalized_sequence_entropy_linear_forgetting"]
11
  },
12
+ "experiment": [
13
+ {"epa_normalized_sequence_entropy_linear_forgetting": 0.4, "ratio_top_20_variants": 0.2},
14
+ {"epa_normalized_sequence_entropy_linear_forgetting": 0.2, "ratio_top_20_variants": 0.7}
15
+ ],
16
  "config_space": {
17
  "mode": [5, 20],
18
  "sequence": [0.01, 1],