-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample_train_config.json
59 lines (58 loc) · 1.87 KB
/
example_train_config.json
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
{
"example_final_model": {
"use_gpu": false,
"path_data_training": "data/your_train_data.json",
"path_data_validation": "data/your_validation_data.json",
"path_data_testing": "data/unified/testing.json",
"is_raw": false,
"save_misaligneds_to_file": false,
"train_subset": 0,
"model_path": "models/your_base_model/",
"entities": "PER, LOC, DIRECCIÓN, OCUPACIÓN/PROFESIÓN, PATENTE/DOMINIO",
"epochs": 20,
"optimizer": {"learn_rate": 0.05},
"dropout": 0.25,
"batch_size":{"f": "compounding", "from": 6.0, "to": 12.0, "rate": 1.5},
"callbacks": {
"on_iteration":[
{"f": "print_scores_on_epoch"},
{"f": "save_best_model", "path_best_model": "models/best", "threshold": 80},
{"f": "reduce_lr_on_plateau", "epochs": 3, "diff": 1, "step": 0.001},
{"f": "early_stop", "epochs": 10, "diff": 2},
{"f": "update_best_scores"},
{"f": "sleep", "secs": 1, "log": true}
],
"on_batch":[{"f": "sleep", "secs": 1}],
"on_stop":[
{"f": "log_best_scores"},
{"f": "save_csv_history"}
]
}
},
"example_tuning_hyperparams": {
"use_gpu": false,
"path_data_training": "data/your_train_data.json",
"path_data_validation": "data/your_validation_data.json",
"is_raw": false,
"save_misaligneds_to_file": false,
"train_subset": 0,
"model_path": "models/your_base_model/",
"entities": "PER, LOC, DIRECCIÓN, OCUPACIÓN/PROFESIÓN, PATENTE/DOMINIO",
"epochs": 40,
"optimizer": {"learn_rate": 0.0008},
"dropout": 0.3,
"batch_size": 4,
"callbacks": {
"on_iteration":[
{"f": "print_scores_on_epoch"},
{"f": "update_best_scores"},
{"f": "sleep", "secs": 1, "log": true}
],
"on_batch":[],
"on_stop":[
{"f": "log_best_scores"},
{"f": "save_csv_history"}
]
}
}
}