config.py 3.89 KB
Newer Older
1
2
from pathlib import Path

Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
3
PATHS_2019 = ['DigiRehab_BorgerID_TrainingDone.xlsx',
4
5
6
7
8
9
10
11
                    'DigiRehab_BorgerID_TrainingCancelled.xlsx',
                    'DigiRehab_BorgerID_StatusSet.xlsx',
                    'DigiRehab_BorgerID_ScreeningContent.xlsx',
                    'HjaelpemidlerUdtraek.csv',
                    'isoall.txt',
                    'DigiRehab_borgerIDALL.csv',
                    'clusters.csv']

Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
12
13
14
15
16
PATHS_2020 = ['borgere_hmi_Rasmus_BorgerId_Gender_BirthYear.xlsx',
              'DrPatientData_RasmusPlusBorgerIdMinusCPR_2020.xlsx',
              'Observationer_Rasmus_BorgerId_Gender_BirthYear.xlsx',
              'Træning_Rasmus_BorgerId_Gender_BirthYear.xlsx']

17
18
ROOT_DIR = Path(__file__).absolute().parent.parent
MODELS_DIR = Path.joinpath(ROOT_DIR, 'models')
19
REFERENCES_DIR = Path.joinpath(ROOT_DIR, 'references')
20
REPORTS_DIR = Path.joinpath(ROOT_DIR, 'reports')
Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
21
REPORTS_PLOTS_DIR = Path.joinpath(ROOT_DIR, 'reports/plots')
22
23
LOGS_DIR = Path.joinpath(ROOT_DIR, 'src/logs')
CONFIG_DIR = Path.joinpath(ROOT_DIR, 'src/cfg')
Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
24
25
26
TESTS_FILES_DIR = Path.joinpath(ROOT_DIR, 'tests/files')
RAW_DATA_DIR_2019 = Path.joinpath(ROOT_DIR, 'data/raw/2019')
RAW_DATA_DIR_2020 = Path.joinpath(ROOT_DIR, 'data/raw/2020')
27
28
29
PROCESSED_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/processed')
INTERIM_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/interim')
EXTERNAL_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/external')
30
CLUSTERS_DIR = Path.joinpath(ROOT_DIR, 'models/clusters')
31
32
33
34
35
COMPLETE_DIR = Path.joinpath(ROOT_DIR, 'models/complete')
COMPLETE_TF_DIR = Path.joinpath(ROOT_DIR, 'models/complete/tensorflow')
COMPLETE_XGB_DIR = Path.joinpath(ROOT_DIR, 'models/complete/xgboost')
COMPLETE_RF_DIR = Path.joinpath(ROOT_DIR, 'models/complete/random_forest')
COMPLETE_EMB_DIR = Path.joinpath(ROOT_DIR, 'models/complete/embeddings')
36
COMPLETE_EMB_FULL_DIR = Path.joinpath(ROOT_DIR, 'models/complete/embeddings_full')
37
38
39
40
41
COMPLIANCE_DIR = Path.joinpath(ROOT_DIR, 'models/compliance')
COMPLIANCE_TF_DIR = Path.joinpath(ROOT_DIR, 'models/compliance/tensorflow')
COMPLIANCE_XGB_DIR = Path.joinpath(ROOT_DIR, 'models/compliance/xgboost')
COMPLIANCE_RF_DIR = Path.joinpath(ROOT_DIR, 'models/compliance/random_forest')
COMPLIANCE_EMB_DIR = Path.joinpath(ROOT_DIR, 'models/compliance/embeddings')
42
43
44
45
46
47
48
49
50
51
FALL_DIR = Path.joinpath(ROOT_DIR, 'models/fall')
FALL_TF_DIR = Path.joinpath(ROOT_DIR, 'models/fall/tensorflow')
FALL_XGB_DIR = Path.joinpath(ROOT_DIR, 'models/fall/xgboost')
FALL_RF_DIR = Path.joinpath(ROOT_DIR, 'models/fall/random_forest')
FALL_EMB_DIR = Path.joinpath(ROOT_DIR, 'models/fall/embeddings')
FALL_TEST_DIR = Path.joinpath(ROOT_DIR, 'models/fall_test')
FALL_TEST_TF_DIR = Path.joinpath(ROOT_DIR, 'models/fall_test/tensorflow')
FALL_TEST_XGB_DIR = Path.joinpath(ROOT_DIR, 'models/fall_test/xgboost')
FALL_TEST_RF_DIR = Path.joinpath(ROOT_DIR, 'models/fall_test/random_forest')
FALL_TEST_EMB_DIR = Path.joinpath(ROOT_DIR, 'models/fall_test/embeddings')
52

53
GENERAL_FEATURES = ['Gender', 'Age', 'Cluster']
thecml's avatar
thecml committed
54
ATS_RESOLUTION = 10
55
EX_RESOLUTION = 9
56
ATS_DELIMITER = 6
57
58
THRESHOLD_WEEKS = 8
THRESHOLD_TRAINING = 10
59
FALL_EXERCISE_THRESHOLD = 3
60
FALL_EXERCISES = ['8058','8062','8066','8077','8074','8059','8071','8067']
61

62
63
PATIENT_ID = 'PatientId'
CITIZEN_ID = 'CitizenId'
Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
64
GENDER = 'Gender'
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
BIRTH_YEAR = 'BirthYear'
RATING_DATE = 'RatingDate'
RATING_SCORE = 'RatingScore'
CHANGE_DATE = 'ChangeDate'
STATUS = 'Status'
SCREENING_DATE = 'ScreeningDate'
NEED_FOR_HELP_SCORE = 'NeedForHelpScore'
NEED_FOR_HELP_REASON = 'NeedForHelpReason'
PHYSICAL_STRENGTH_SCORE = 'PhysicalStrengthScore'
PHYSICAL_STRENGTH_REASON = 'PhysicalStrengthReason'
EXERCISE_CONTENT = 'ExerciseContent'
DEV_HMI_NUMBER = 'DevHMINumber'
DEV_HMI_NAME   = 'DevHMIName'
DEV_ISO_CLASS  = 'DevISOClass'
DEV_SERIAL    = 'DevSerial'
LAW_PARAGRAPH = 'LawParagraph'
LEND_DATE     = 'LendDate'
RETURN_DATE   = 'ReturnDate'
PRICE        = 'Price'
GROUP_SIZE   = 'GroupSize'
Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
85
86
87
88
DESCRIPTION = 'Description'
DATE = 'Date'
QUESTION = 'Question'
ANSWER = 'Answer'