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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run_id": "20260608_183010",
|
| 3 |
+
"hyperparameters": {
|
| 4 |
+
"model_architecture": "UBC-NLP/MARBERT",
|
| 5 |
+
"task": "sequence-classification",
|
| 6 |
+
"dataset": "Nexus-Analytics/multilingual-hate-detection-dataset_v2",
|
| 7 |
+
"learning_rate": 5e-05,
|
| 8 |
+
"batch_size": 128,
|
| 9 |
+
"num_epochs": 8,
|
| 10 |
+
"max_seq_length": 128,
|
| 11 |
+
"early_stopping_patience": 2,
|
| 12 |
+
"optimizer": "AdamW",
|
| 13 |
+
"seed": 42
|
| 14 |
+
},
|
| 15 |
+
"per_epoch_results": [
|
| 16 |
+
{
|
| 17 |
+
"epoch": 1,
|
| 18 |
+
"train_loss": 0.19154663949004755,
|
| 19 |
+
"val_loss": 0.11745435924967751,
|
| 20 |
+
"val_accuracy": 0.9633162142333089,
|
| 21 |
+
"val_f1_weighted": 0.9633212475969003,
|
| 22 |
+
"val_f1_macro": 0.9633141056620746,
|
| 23 |
+
"val_precision_macro": 0.9635024900000431,
|
| 24 |
+
"val_recall_macro": 0.9637570309851711,
|
| 25 |
+
"hate_recall": 0.9809236947791165,
|
| 26 |
+
"hate_f1": 0.9630359783144407,
|
| 27 |
+
"classification_report": {
|
| 28 |
+
"Hate": {
|
| 29 |
+
"precision": 0.9457889641819942,
|
| 30 |
+
"recall": 0.9809236947791165,
|
| 31 |
+
"f1-score": 0.9630359783144407,
|
| 32 |
+
"support": 1992.0
|
| 33 |
+
},
|
| 34 |
+
"Normal": {
|
| 35 |
+
"precision": 0.9812160158180919,
|
| 36 |
+
"recall": 0.9465903671912256,
|
| 37 |
+
"f1-score": 0.9635922330097088,
|
| 38 |
+
"support": 2097.0
|
| 39 |
+
},
|
| 40 |
+
"accuracy": 0.9633162142333089,
|
| 41 |
+
"macro avg": {
|
| 42 |
+
"precision": 0.9635024900000431,
|
| 43 |
+
"recall": 0.9637570309851711,
|
| 44 |
+
"f1-score": 0.9633141056620746,
|
| 45 |
+
"support": 4089.0
|
| 46 |
+
},
|
| 47 |
+
"weighted avg": {
|
| 48 |
+
"precision": 0.9639573494304406,
|
| 49 |
+
"recall": 0.9633162142333089,
|
| 50 |
+
"f1-score": 0.9633212475969003,
|
| 51 |
+
"support": 4089.0
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"epoch": 2,
|
| 57 |
+
"train_loss": 0.08156263534504696,
|
| 58 |
+
"val_loss": 0.08093148059560917,
|
| 59 |
+
"val_accuracy": 0.97505502567865,
|
| 60 |
+
"val_f1_weighted": 0.9750585119414326,
|
| 61 |
+
"val_f1_macro": 0.9750470726416773,
|
| 62 |
+
"val_precision_macro": 0.9749740403296041,
|
| 63 |
+
"val_recall_macro": 0.9752396567672694,
|
| 64 |
+
"hate_recall": 0.982429718875502,
|
| 65 |
+
"hate_f1": 0.974601593625498,
|
| 66 |
+
"classification_report": {
|
| 67 |
+
"Hate": {
|
| 68 |
+
"precision": 0.966897233201581,
|
| 69 |
+
"recall": 0.982429718875502,
|
| 70 |
+
"f1-score": 0.974601593625498,
|
| 71 |
+
"support": 1992.0
|
| 72 |
+
},
|
| 73 |
+
"Normal": {
|
| 74 |
+
"precision": 0.9830508474576272,
|
| 75 |
+
"recall": 0.9680495946590367,
|
| 76 |
+
"f1-score": 0.9754925516578568,
|
| 77 |
+
"support": 2097.0
|
| 78 |
+
},
|
| 79 |
+
"accuracy": 0.97505502567865,
|
| 80 |
+
"macro avg": {
|
| 81 |
+
"precision": 0.9749740403296041,
|
| 82 |
+
"recall": 0.9752396567672694,
|
| 83 |
+
"f1-score": 0.9750470726416773,
|
| 84 |
+
"support": 4089.0
|
| 85 |
+
},
|
| 86 |
+
"weighted avg": {
|
| 87 |
+
"precision": 0.9751814418332584,
|
| 88 |
+
"recall": 0.97505502567865,
|
| 89 |
+
"f1-score": 0.9750585119414326,
|
| 90 |
+
"support": 4089.0
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"epoch": 3,
|
| 96 |
+
"train_loss": 0.045174777440589245,
|
| 97 |
+
"val_loss": 0.08581177450832911,
|
| 98 |
+
"val_accuracy": 0.9721203228173148,
|
| 99 |
+
"val_f1_weighted": 0.972099032908255,
|
| 100 |
+
"val_f1_macro": 0.9720679851242093,
|
| 101 |
+
"val_precision_macro": 0.9730927991009681,
|
| 102 |
+
"val_recall_macro": 0.9716494734302015,
|
| 103 |
+
"hate_recall": 0.9533132530120482,
|
| 104 |
+
"hate_f1": 0.9708588957055214,
|
| 105 |
+
"classification_report": {
|
| 106 |
+
"Hate": {
|
| 107 |
+
"precision": 0.9890625,
|
| 108 |
+
"recall": 0.9533132530120482,
|
| 109 |
+
"f1-score": 0.9708588957055214,
|
| 110 |
+
"support": 1992.0
|
| 111 |
+
},
|
| 112 |
+
"Normal": {
|
| 113 |
+
"precision": 0.9571230982019364,
|
| 114 |
+
"recall": 0.9899856938483548,
|
| 115 |
+
"f1-score": 0.9732770745428974,
|
| 116 |
+
"support": 2097.0
|
| 117 |
+
},
|
| 118 |
+
"accuracy": 0.9721203228173148,
|
| 119 |
+
"macro avg": {
|
| 120 |
+
"precision": 0.9730927991009681,
|
| 121 |
+
"recall": 0.9716494734302015,
|
| 122 |
+
"f1-score": 0.9720679851242093,
|
| 123 |
+
"support": 4089.0
|
| 124 |
+
},
|
| 125 |
+
"weighted avg": {
|
| 126 |
+
"precision": 0.9726827187403915,
|
| 127 |
+
"recall": 0.9721203228173148,
|
| 128 |
+
"f1-score": 0.972099032908255,
|
| 129 |
+
"support": 4089.0
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 4,
|
| 135 |
+
"train_loss": 0.032155923308428036,
|
| 136 |
+
"val_loss": 0.1120583011652343,
|
| 137 |
+
"val_accuracy": 0.9689410613842016,
|
| 138 |
+
"val_f1_weighted": 0.9689254825748659,
|
| 139 |
+
"val_f1_macro": 0.9688946188959935,
|
| 140 |
+
"val_precision_macro": 0.9695287669261308,
|
| 141 |
+
"val_recall_macro": 0.9685875117063389,
|
| 142 |
+
"hate_recall": 0.9548192771084337,
|
| 143 |
+
"hate_f1": 0.9676926990587637,
|
| 144 |
+
"classification_report": {
|
| 145 |
+
"Hate": {
|
| 146 |
+
"precision": 0.9809179989685405,
|
| 147 |
+
"recall": 0.9548192771084337,
|
| 148 |
+
"f1-score": 0.9676926990587637,
|
| 149 |
+
"support": 1992.0
|
| 150 |
+
},
|
| 151 |
+
"Normal": {
|
| 152 |
+
"precision": 0.958139534883721,
|
| 153 |
+
"recall": 0.9823557463042442,
|
| 154 |
+
"f1-score": 0.9700965387332234,
|
| 155 |
+
"support": 2097.0
|
| 156 |
+
},
|
| 157 |
+
"accuracy": 0.9689410613842016,
|
| 158 |
+
"macro avg": {
|
| 159 |
+
"precision": 0.9695287669261308,
|
| 160 |
+
"recall": 0.9685875117063389,
|
| 161 |
+
"f1-score": 0.9688946188959935,
|
| 162 |
+
"support": 4089.0
|
| 163 |
+
},
|
| 164 |
+
"weighted avg": {
|
| 165 |
+
"precision": 0.969236306822327,
|
| 166 |
+
"recall": 0.9689410613842016,
|
| 167 |
+
"f1-score": 0.9689254825748659,
|
| 168 |
+
"support": 4089.0
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"best_val_macro_f1": 0.9750470726416773,
|
| 174 |
+
"best_val_weighted_f1": 0.9750585119414326,
|
| 175 |
+
"best_epoch": 2,
|
| 176 |
+
"test_metrics": {
|
| 177 |
+
"overall": {
|
| 178 |
+
"accuracy": 0.9743213499633162,
|
| 179 |
+
"f1_macro": 0.9743083442694433,
|
| 180 |
+
"f1_weighted": 0.9743229049919315,
|
| 181 |
+
"precision_macro": 0.9742579589023392,
|
| 182 |
+
"recall_macro": 0.9743728526943538,
|
| 183 |
+
"classification_report": {
|
| 184 |
+
"Hate": {
|
| 185 |
+
"precision": 0.9710578842315369,
|
| 186 |
+
"recall": 0.9764174611138986,
|
| 187 |
+
"f1-score": 0.9737302977232924,
|
| 188 |
+
"support": 1993.0
|
| 189 |
+
},
|
| 190 |
+
"Normal": {
|
| 191 |
+
"precision": 0.9774580335731415,
|
| 192 |
+
"recall": 0.9723282442748091,
|
| 193 |
+
"f1-score": 0.9748863908155944,
|
| 194 |
+
"support": 2096.0
|
| 195 |
+
},
|
| 196 |
+
"accuracy": 0.9743213499633162,
|
| 197 |
+
"macro avg": {
|
| 198 |
+
"precision": 0.9742579589023392,
|
| 199 |
+
"recall": 0.9743728526943538,
|
| 200 |
+
"f1-score": 0.9743083442694433,
|
| 201 |
+
"support": 4089.0
|
| 202 |
+
},
|
| 203 |
+
"weighted avg": {
|
| 204 |
+
"precision": 0.9743385672885199,
|
| 205 |
+
"recall": 0.9743213499633162,
|
| 206 |
+
"f1-score": 0.9743229049919315,
|
| 207 |
+
"support": 4089.0
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
"arabic": {
|
| 212 |
+
"accuracy": 0.9802431610942249,
|
| 213 |
+
"f1_macro": 0.979992385328373,
|
| 214 |
+
"f1_weighted": 0.980230679042531,
|
| 215 |
+
"precision_macro": 0.9806305316988528,
|
| 216 |
+
"recall_macro": 0.9794174079888366,
|
| 217 |
+
"classification_report": {
|
| 218 |
+
"Hate": {
|
| 219 |
+
"precision": 0.983926521239954,
|
| 220 |
+
"recall": 0.971655328798186,
|
| 221 |
+
"f1-score": 0.9777524244152881,
|
| 222 |
+
"support": 882.0
|
| 223 |
+
},
|
| 224 |
+
"Normal": {
|
| 225 |
+
"precision": 0.9773345421577516,
|
| 226 |
+
"recall": 0.9871794871794872,
|
| 227 |
+
"f1-score": 0.9822323462414578,
|
| 228 |
+
"support": 1092.0
|
| 229 |
+
},
|
| 230 |
+
"accuracy": 0.9802431610942249,
|
| 231 |
+
"macro avg": {
|
| 232 |
+
"precision": 0.9806305316988528,
|
| 233 |
+
"recall": 0.9794174079888366,
|
| 234 |
+
"f1-score": 0.979992385328373,
|
| 235 |
+
"support": 1974.0
|
| 236 |
+
},
|
| 237 |
+
"weighted avg": {
|
| 238 |
+
"precision": 0.9802798945136294,
|
| 239 |
+
"recall": 0.9802431610942249,
|
| 240 |
+
"f1-score": 0.980230679042531,
|
| 241 |
+
"support": 1974.0
|
| 242 |
+
}
|
| 243 |
+
}
|
| 244 |
+
},
|
| 245 |
+
"english": {
|
| 246 |
+
"accuracy": 0.9687943262411347,
|
| 247 |
+
"f1_macro": 0.9686778034476631,
|
| 248 |
+
"f1_weighted": 0.9687744541368217,
|
| 249 |
+
"precision_macro": 0.9693808949439424,
|
| 250 |
+
"recall_macro": 0.9681866593033805,
|
| 251 |
+
"classification_report": {
|
| 252 |
+
"Hate": {
|
| 253 |
+
"precision": 0.9611650485436893,
|
| 254 |
+
"recall": 0.9801980198019802,
|
| 255 |
+
"f1-score": 0.9705882352941176,
|
| 256 |
+
"support": 1111.0
|
| 257 |
+
},
|
| 258 |
+
"Normal": {
|
| 259 |
+
"precision": 0.9775967413441955,
|
| 260 |
+
"recall": 0.9561752988047809,
|
| 261 |
+
"f1-score": 0.9667673716012085,
|
| 262 |
+
"support": 1004.0
|
| 263 |
+
},
|
| 264 |
+
"accuracy": 0.9687943262411347,
|
| 265 |
+
"macro avg": {
|
| 266 |
+
"precision": 0.9693808949439424,
|
| 267 |
+
"recall": 0.9681866593033805,
|
| 268 |
+
"f1-score": 0.9686778034476631,
|
| 269 |
+
"support": 2115.0
|
| 270 |
+
},
|
| 271 |
+
"weighted avg": {
|
| 272 |
+
"precision": 0.9689652469227477,
|
| 273 |
+
"recall": 0.9687943262411347,
|
| 274 |
+
"f1-score": 0.9687744541368217,
|
| 275 |
+
"support": 2115.0
|
| 276 |
+
}
|
| 277 |
+
}
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
"notes": "MARBERT sweep. LR=5e-05, Batch=128. Early stopping based on validation macro F1."
|
| 281 |
+
}
|