-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconsts.py
67 lines (55 loc) · 1.17 KB
/
consts.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from pathlib import Path
PROJECT_NAME = "project_template"
DESCRIPTION = """
Distilling a model through an API.
"""
PROJECT_DIR = Path.home() / PROJECT_NAME
DATA_DIR = PROJECT_DIR / "data"
EXPERIMENTS_DIR = PROJECT_DIR / "experiments"
# BRANCHES
MAIN = "main"
# SCRIPT PATHS
MAIN_PATH = PROJECT_DIR / "main.py"
# GENERAL
IMDB = "imdb"
AUTO = "auto"
# WANDB
WANDB = "wandb"
WANDB_PROJECT = "WANDB_PROJECT"
# SUFFIXES
CSV = '.csv'
JSON = '.json'
TXT = '.txt'
JPG = '.jpg'
PNG = '.png'
# SPLITS
TRAIN = "train"
VALIDATION = "validation"
TEST = "test"
UNLABELED = "unlabeled"
ALL = "all"
SPLITS = [TRAIN, VALIDATION, TEST, UNLABELED]
# MODEL TYPES
CLS = "cls" # Classification
QA = "qa" # Question Answering
TCLS = "" # Token Classification
ALL_MODEL_TYPES = [CLS, QA, TCLS]
# TRAINER TYPES
STANDARD = "standard"
CUSTOM = "custom"
ALL_TRAINER_TYPES = [STANDARD, CUSTOM]
# METRICS
AGREEMENT = "agreement"
ACCURACY = "accuracy"
NOISE = "iteration_noise"
F1 = "f1"
MACRO = "macro"
MACRO_F1 = "macro-f1"
MATTHEWS_CORRELATION = "matthews_correlation"
# FEATURES
TEXT = "text"
LABELS = "labels"
INPUT_IDS = "input_ids"
TRAIN_SAMPLES = "train_samples"
EVAL = "eval"
EVAL_SAMPLES = "eval_samples"