config.py 3.84 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
REPORTS_DIR = Path.joinpath(ROOT_DIR, 'reports')
Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
20
REPORTS_PLOTS_DIR = Path.joinpath(ROOT_DIR, 'reports/plots')
21
22
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
23
24
25
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')
26
27
28
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')
29
CLUSTERS_DIR = Path.joinpath(ROOT_DIR, 'models/clusters')
30
31
32
33
34
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')
35
COMPLETE_EMB_FULL_DIR = Path.joinpath(ROOT_DIR, 'models/complete/embeddings_full')
36
37
38
39
40
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')
41
42
43
44
45
46
47
48
49
50
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')
51

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

61
62
PATIENT_ID = 'PatientId'
CITIZEN_ID = 'CitizenId'
Christian Marius Lillelund's avatar
Christian Marius Lillelund committed
63
GENDER = 'Gender'
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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
84
85
86
87
DESCRIPTION = 'Description'
DATE = 'Date'
QUESTION = 'Question'
ANSWER = 'Answer'