def run():
    fn = Name_functions.full_GRAEC_table()

    # Clear Test Scores file
    with open(fn, 'w+') as wf:
        wf.write('Beta;Tau;P;S;Score_type;Score_Value\n')

    for S in Parameters.S_values:
        Filefunctions.make_directory(Name_functions.S_score_folder(S))
        print('S = {}'.format(S))
        parse_graec(S)
        parse_previous(S)
        parse_naive(S)
Exemple #2
0
# in the process when the prediction takes place, and the subset period length S


def print_state(s):
    print('-' * 25)
    print(s)
    print('-' * 25)


if Parameters.Demo:
    print('Running Demo')
    print_state('Building Dataset')
    # Remove old folder
    Filefunctions.delete(Parameters.root_location)
    # Create new folder
    Filefunctions.make_directory(Parameters.root_location)
    DEMO_CREATE_EVENTLOG.run()
else:
    print('Running Real Dataset')

print_state('Splitting and labeling event log')
STEP0_Split_And_Label.run()

# Reduce the size of the data set if needed
print_state('Reducing Data Size')
STEP1_Reducing_Class_Sizes.run()

# Train all models
print_state('Training')
STEP2_Model_Training.run()
Exemple #3
0
def S_GRAEC_enumeration_folder(S):
    fd = S_folder(S) + '/BEPT_Enumeration'
    Filefunctions.make_directory(fd)
    return fd