-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.py
53 lines (46 loc) · 1.14 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from typing import List
SEED: int = 30
BASE_URL: str = "https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.6/L3-L5_files/2023.1/elev_bands/W5E5_w_data/"
TEST_SIZE: float = 0.3
N_SPLITS: int = 5
# Default:
# META_DATA: List[str] = [
# "RGIId", "POINT_ID", "ID", "N_MONTHS", "MONTHS"
# ]
# NOT_METADATA_NOT_FEATURES: List[str] = [
# "POINT_BALANCE", "YEAR", "POINT_LAT", "POINT_LON", 'ALTITUDE_CLIMATE'
# ]
# NUM_JOBS: int = -1
# LOSS:str = 'MSE'
# For CH
META_DATA: List[str] = [
"RGIId", "POINT_ID", "ID", "N_MONTHS", "MONTHS", "PERIOD", "GLACIER"
]
NOT_METADATA_NOT_FEATURES: List[str] = [
"POINT_BALANCE", "YEAR", "POINT_LAT", "POINT_LON"
]
NUM_JOBS: int = 25
LOSS:str = 'MSE'
def add_column(column_name):
global META_DATA
if column_name not in META_DATA:
META_DATA.append(column_name)
def remove_column(column_name):
global META_DATA
if column_name in META_DATA:
META_DATA.remove(column_name)
month_abbr_hydr = {
'sep': 1,
'oct': 2,
'nov': 3,
'dec': 4,
'jan': 5,
'feb': 6,
'mar': 7,
'apr': 8,
'may': 9,
'jun': 10,
'jul': 11,
'aug': 12,
#'sep_': 13,
}