Download optimized_codebert_20260908_132101_metrics.json from FrancoMorales1/CodeBERT-Vulnerability-Detection: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/FrancoMorales1/CodeBERT-Vulnerability-Detection/resolve/main/optimized_codebert_20260908_132101_metrics.json
- Command line
-
hf download hf://FrancoMorales1/CodeBERT-Vulnerability-Detection/optimized_codebert_20260908_132101_metrics.json
-
curl -L -o optimized_codebert_20260908_132101_metrics.json https://huggingface.co/FrancoMorales1/CodeBERT-Vulnerability-Detection/resolve/main/optimized_codebert_20260908_132101_metrics.json
1.87 kB
| { | |
| "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 | |
| } |