dp-sequential-events 1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dp_sequential_events/cli.py +18 -0
- dp_sequential_events/databases/datos.csv +21 -0
- dp_sequential_events/databases/datos_sinteticos.csv +3214 -0
- dp_sequential_events/main/annotated.py +180 -0
- dp_sequential_events/main/case_sampling.py +205 -0
- dp_sequential_events/main/dafsa.png +0 -0
- dp_sequential_events/main/filtered.py +53 -0
- dp_sequential_events/main/generate_synthetic_log.py +60 -0
- dp_sequential_events/main/main.py +54 -0
- dp_sequential_events-1.dist-info/METADATA +35 -0
- dp_sequential_events-1.dist-info/RECORD +14 -0
- dp_sequential_events-1.dist-info/WHEEL +4 -0
- dp_sequential_events-1.dist-info/entry_points.txt +2 -0
- dp_sequential_events-1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
from graph_protocol.main.main import annotation_and_filtering, sampling_and_anonymization
|
|
3
|
+
|
|
4
|
+
def cli_main():
|
|
5
|
+
dataset_name = input("Enter dataset name : ")
|
|
6
|
+
delta = float(input("Enter delta value: "))
|
|
7
|
+
condition_number = float(input("Enter condition number: "))
|
|
8
|
+
|
|
9
|
+
df_filtered = annotation_and_filtering(dataset_name, delta, condition_number)
|
|
10
|
+
|
|
11
|
+
input("Do you want to choose other values? (y/n): ")
|
|
12
|
+
if input().lower() == 'y':
|
|
13
|
+
cli_main()
|
|
14
|
+
else:
|
|
15
|
+
df = sampling_and_anonymization(df_filtered)
|
|
16
|
+
print("\n Final anonymized log:")
|
|
17
|
+
print(df)
|
|
18
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
CaseID,Activity,Timestamp
|
|
2
|
+
1,A,2020-08-08 10:20:00
|
|
3
|
+
1,B,2020-08-08 10:50:00
|
|
4
|
+
1,D,2020-08-08 12:37:00
|
|
5
|
+
1,C,2020-08-08 16:15:00
|
|
6
|
+
2,A,2020-08-08 14:37:00
|
|
7
|
+
2,E,2020-08-08 15:07:00
|
|
8
|
+
2,C,2020-08-08 20:31:00
|
|
9
|
+
2,A,2020-08-09 13:30:00
|
|
10
|
+
3,B,2020-08-09 13:55:00
|
|
11
|
+
3,D,2020-08-09 15:00:00
|
|
12
|
+
3,A,2020-08-09 17:00:00
|
|
13
|
+
3,C,2020-08-09 20:55:00
|
|
14
|
+
4,A,2020-08-09 17:25:00
|
|
15
|
+
4,B,2020-08-09 17:40:00
|
|
16
|
+
4,C,2020-08-09 23:05:00
|
|
17
|
+
5,E,2020-08-09 17:55:00
|
|
18
|
+
5,C,2020-08-10 23:55:00
|
|
19
|
+
5,A,2020-08-11 17:00:00
|
|
20
|
+
6,B,2020-08-11 17:27:00
|
|
21
|
+
6,C,2020-08-11 23:45:00
|