Camila Arias commited on
Commit
1c20294
1 Parent(s): 4d14d9c

Add config files

Browse files
Files changed (3) hide show
  1. config.json +43 -0
  2. history.json +1 -0
  3. trainer_config.yml +9 -0
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dcariasvi/DrBERT-CASM2",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-problem",
14
+ "2": "I-problem",
15
+ "3": "B-treatment",
16
+ "4": "I-treatment",
17
+ "5": "B-test",
18
+ "6": "I-test"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "B-problem": 1,
24
+ "B-test": 5,
25
+ "B-treatment": 3,
26
+ "I-problem": 2,
27
+ "I-test": 6,
28
+ "I-treatment": 4,
29
+ "O": 0
30
+ },
31
+ "layer_norm_eps": 1e-12,
32
+ "max_position_embeddings": 512,
33
+ "model_type": "bert",
34
+ "num_attention_heads": 12,
35
+ "num_hidden_layers": 12,
36
+ "pad_token_id": 0,
37
+ "position_embedding_type": "absolute",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.26.1",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 30522
43
+ }
history.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"train": {"loss": 0.4125201638787985}, "eval": {"loss": 0.28105667685968394, "overall_precision": 0.6288554677542697, "overall_recall": 0.6964991530208922, "overall_f1-score": 0.6609511051574012, "overall_support": "3542", "overall_acc": 0.9027570584010166, "problem_precision": 0.6217303822937625, "problem_recall": 0.6821192052980133, "problem_f1-score": 0.6505263157894737, "problem_support": "1812", "test_precision": 0.6564245810055865, "test_recall": 0.7524012806830309, "test_f1-score": 0.7011437095972153, "test_support": "937", "treatment_precision": 0.610917537746806, "treatment_recall": 0.6633039092055486, "treatment_f1-score": 0.6360338573155987, "treatment_support": "793"}}, {"train": {"loss": 0.2762815960689264}, "eval": {"loss": 0.2743868621309166, "overall_precision": 0.6495202558635395, "overall_recall": 0.6880293619424054, "overall_f1-score": 0.6682204551686318, "overall_support": "3542", "overall_acc": 0.9052710094480358, "problem_precision": 0.633705475810739, "problem_recall": 0.6578366445916115, "problem_f1-score": 0.6455456268616301, "problem_support": "1812", "test_precision": 0.6851851851851852, "test_recall": 0.7502668089647813, "test_f1-score": 0.7162506367804381, "test_support": "937", "treatment_precision": 0.6414201183431952, "treatment_recall": 0.6834804539722572, "treatment_f1-score": 0.6617826617826619, "treatment_support": "793"}}, {"train": {"loss": 0.24771345957834906}, "eval": {"loss": 0.271967472341519, "overall_precision": 0.6427855711422845, "overall_recall": 0.7244494635798984, "overall_f1-score": 0.6811786567560393, "overall_support": "3542", "overall_acc": 0.9052710094480358, "problem_precision": 0.6335992023928215, "problem_recall": 0.7014348785871964, "problem_f1-score": 0.6657936092194865, "problem_support": "1812", "test_precision": 0.6627379873073436, "test_recall": 0.7801494130202775, "test_f1-score": 0.7166666666666668, "test_support": "937", "treatment_precision": 0.638731596828992, "treatment_recall": 0.7112232030264817, "treatment_f1-score": 0.6730310262529833, "treatment_support": "793"}}, {"train": {"loss": 0.22672327848620155}, "eval": {"loss": 0.2861445434745806, "overall_precision": 0.6255808266079727, "overall_recall": 0.7221908526256352, "overall_f1-score": 0.670423273489713, "overall_support": "3542", "overall_acc": 0.8994695839549146, "problem_precision": 0.6085686465433301, "problem_recall": 0.6898454746136865, "problem_f1-score": 0.6466632177961718, "problem_support": "1812", "test_precision": 0.666970802919708, "test_recall": 0.7801494130202775, "test_f1-score": 0.719134284308903, "test_support": "937", "treatment_precision": 0.6144834930777423, "treatment_recall": 0.7276166456494325, "treatment_f1-score": 0.6662817551963048, "treatment_support": "793"}}, {"train": {"loss": 0.2031083636096723}, "eval": {"loss": 0.2810970079027238, "overall_precision": 0.6511976047904192, "overall_recall": 0.7368718238283456, "overall_f1-score": 0.6913907284768213, "overall_support": "3542", "overall_acc": 0.9046356152273606, "problem_precision": 0.6431761786600496, "problem_recall": 0.7152317880794702, "problem_f1-score": 0.6772929187353018, "problem_support": "1812", "test_precision": 0.663963963963964, "test_recall": 0.7865528281750267, "test_f1-score": 0.7200781631656081, "test_support": "937", "treatment_precision": 0.6534541336353341, "treatment_recall": 0.7276166456494325, "treatment_f1-score": 0.68854415274463, "treatment_support": "793"}}]
trainer_config.yml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ learning_rate: 5.0e-06
2
+ nb_training_epochs: 5
3
+ dataloader_nb_workers: 0
4
+ batch_size: 4
5
+ seed: 0
6
+ gradient_accumulation_steps: 1
7
+ do_metrics_in_training: false
8
+ metric_to_track_lr: loss
9
+ log_step_interval: 100