File size: 1,865 Bytes
16c49fc | 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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | {
"run_name": "optimized_codebert",
"timestamp": "20260908_132101",
"hyperparams": {
"model": "microsoft/codebert-base",
"max_len": 510,
"batch_size": 16,
"grad_accum": 4,
"effective_batch": 64,
"epochs_max": 50,
"early_stop": 10,
"lr_encoder": 2.35e-05,
"lr_head": 0.00153,
"beta1": 0.89,
"warmup_epochs": 3,
"lr_gamma": 0.976,
"optimizer": "Adam",
"weight_decay": 1.31e-05,
"dropout": 0.086,
"hidden_dim": 128,
"loss": "BCEWithLogitsLoss",
"gradient_checkpoint": true,
"fp16": true
},
"metrics": {
"f1_macro": 0.938385,
"f1_micro": 0.936281,
"recall": 0.939737,
"precision": 0.950687,
"accuracy": 0.936281
},
"per_class": {
"Re-entrancy": {
"precision": 0.8027495517035266,
"recall": 1.0,
"f1-score": 0.8905835543766578,
"support": 1343.0
},
"Timestamp-Dependency": {
"precision": 1.0,
"recall": 1.0,
"f1-score": 1.0,
"support": 1131.0
},
"Unhandled-Exceptions": {
"precision": 1.0,
"recall": 0.7589481373265157,
"f1-score": 0.8629568106312292,
"support": 1369.0
},
"tx.origin": {
"precision": 1.0,
"recall": 1.0,
"f1-score": 1.0,
"support": 1336.0
}
},
"confusion_matrix": [
[
1343,
0,
0,
0
],
[
0,
1131,
0,
0
],
[
330,
0,
1039,
0
],
[
0,
0,
0,
1336
]
],
"train_distribution": {
"Re-entrancy": 3500,
"Timestamp-Dependency": 3500,
"Unhandled-Exceptions": 312,
"tx.origin": 71
},
"test_distribution": {
"Unhandled-Exceptions": 1369,
"Re-entrancy": 1343,
"tx.origin": 1336,
"Timestamp-Dependency": 1131
},
"correct_count": 4849,
"wrong_count": 330
} |