File size: 1,581 Bytes
224037d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "model_name": "CodeBERT Nazzoor v3 (Hard-Negative Fine-Tuned)",
  "base_model": "core/ai/models/Nazzoor_Models/codebert_nazzoor_v2",
  "created_at": "2026-11-28T13:30:23Z",
  "architecture": "RobertaForSequenceClassification (12 layers, 12 heads, 768 hidden)",
  "num_labels": 2,
  "id2label": {
    "0": "BENIGN",
    "1": "MALICIOUS"
  },
  "training_dataset": "models/codebert_v3/codebert_v3_train_dataset.json",
  "training_samples": 4057,
  "validation_samples": 1000,
  "best_val_f1": 1.0,
  "weights_sha256": "a8f344163992c7c9924603a70562064281656af78fce131e4145375c09114d0d",
  "hyperparameters": {
    "seed": 42,
    "epochs_trained": 3,
    "batch_size": 32,
    "learning_rate": 1.2e-05,
    "weight_decay": 0.01,
    "max_length": 128,
    "class_weights": [
      0.9064,
      1.1152
    ]
  },
  "history": [
    {
      "epoch": 1,
      "train_loss": 0.1354,
      "val_loss": 0.0013,
      "val_accuracy": 0.999,
      "val_precision": 0.998,
      "val_recall": 1.0,
      "val_f1": 0.999,
      "val_fpr": 0.002,
      "epoch_duration_sec": 1154.39
    },
    {
      "epoch": 2,
      "train_loss": 0.0039,
      "val_loss": 0.0059,
      "val_accuracy": 0.999,
      "val_precision": 0.998,
      "val_recall": 1.0,
      "val_f1": 0.999,
      "val_fpr": 0.002,
      "epoch_duration_sec": 1166.81
    },
    {
      "epoch": 3,
      "train_loss": 0.0025,
      "val_loss": 0.0001,
      "val_accuracy": 1.0,
      "val_precision": 1.0,
      "val_recall": 1.0,
      "val_f1": 1.0,
      "val_fpr": 0.0,
      "epoch_duration_sec": 1242.24
    }
  ]
}