This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE organisation ( | |
| organisation_id int NOT NULL auto_increment, | |
| organisation_name VARCHAR(150) NOT NULL, | |
| PRIMARY KEY (organisation_id) | |
| ); | |
| CREATE TABLE meeting ( | |
| meeting_id VARCHAR(20) NOT NULL, | |
| meeting_title VARCHAR(50) NOT NULL, | |
| meeting_date DATE NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CameraEvent: | |
| def __init__(self): | |
| pass | |
| class StartCameraMove(CameraEvent): | |
| def __init__(self): | |
| pass | |
| class StopCameraMove(CameraEvent): | |
| def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pm4py | |
| def calculate_alignments(event_log, net, initial_marking, final_marking): | |
| """ Performs alignment-based conformance checking on the given event log using PM4PY's alignment algorithm. | |
| It returns alignment diagnostics and a fitness value which quantifies how well the petri net explains the event log. | |
| Parameters: | |
| event_log : pm4py.objects.log.obj.EventLog | |
| The event log used for alignment-based conformance checking. | |
| net : pm4py.objects.petri_net.petrinet.PetriNet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import numpy as np | |
| import json | |
| import random | |
| import re | |
| from datetime import datetime, timedelta | |
| import missingno as msno | |
| def generate_timestamp(id, submodule): | |
| #if timestamp does not exist from previous run - initialised once |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import pandas as pd | |
| from sdv.metadata import Metadata | |
| from sdv.single_table import CTGANSynthesizer | |
| from sdv.cag import FixedCombinations | |
| from sdv.evaluation.single_table import run_diagnostic | |
| from sdv.evaluation.single_table import evaluate_quality | |
| from sdv.evaluation.single_table import get_column_plot |