lgsilvaesilva commited on
Commit
caecdad
·
verified ·
1 Parent(s): 35fe350

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. README.md +326 -0
  3. REPORT.md +160 -0
  4. baselines/embedding-lightgbm/embedding-lightgbm.joblib +3 -0
  5. baselines/embedding-lightgbm/test_predictions.csv +0 -0
  6. baselines/embedding-lightgbm/validation_predictions.csv +0 -0
  7. baselines/embedding-logistic/embedding-logistic.joblib +3 -0
  8. baselines/embedding-logistic/test_predictions.csv +0 -0
  9. baselines/embedding-logistic/validation_predictions.csv +0 -0
  10. baselines/embedding-svm/embedding-svm.joblib +3 -0
  11. baselines/embedding-svm/test_predictions.csv +0 -0
  12. baselines/embedding-svm/validation_predictions.csv +0 -0
  13. baselines/logistic/logistic_tfidf.joblib +3 -0
  14. baselines/logistic/test_predictions.csv +0 -0
  15. baselines/logistic/validation_predictions.csv +0 -0
  16. baselines/xgboost/test_predictions.csv +0 -0
  17. baselines/xgboost/validation_predictions.csv +0 -0
  18. baselines/xgboost/xgboost_tfidf.joblib +3 -0
  19. report.json +1257 -0
  20. transformer/checkpoint-1011/config.json +39 -0
  21. transformer/checkpoint-1011/model.safetensors +3 -0
  22. transformer/checkpoint-1011/optimizer.pt +3 -0
  23. transformer/checkpoint-1011/rng_state.pth +3 -0
  24. transformer/checkpoint-1011/scaler.pt +3 -0
  25. transformer/checkpoint-1011/scheduler.pt +3 -0
  26. transformer/checkpoint-1011/tokenizer.json +3 -0
  27. transformer/checkpoint-1011/tokenizer_config.json +15 -0
  28. transformer/checkpoint-1011/trainer_state.json +362 -0
  29. transformer/checkpoint-1011/training_args.bin +3 -0
  30. transformer/checkpoint-1348/config.json +39 -0
  31. transformer/checkpoint-1348/model.safetensors +3 -0
  32. transformer/checkpoint-1348/optimizer.pt +3 -0
  33. transformer/checkpoint-1348/rng_state.pth +3 -0
  34. transformer/checkpoint-1348/scaler.pt +3 -0
  35. transformer/checkpoint-1348/scheduler.pt +3 -0
  36. transformer/checkpoint-1348/tokenizer.json +3 -0
  37. transformer/checkpoint-1348/tokenizer_config.json +15 -0
  38. transformer/checkpoint-1348/trainer_state.json +466 -0
  39. transformer/checkpoint-1348/training_args.bin +3 -0
  40. transformer/checkpoint-1685/config.json +39 -0
  41. transformer/checkpoint-1685/model.safetensors +3 -0
  42. transformer/checkpoint-1685/optimizer.pt +3 -0
  43. transformer/checkpoint-1685/rng_state.pth +3 -0
  44. transformer/checkpoint-1685/scaler.pt +3 -0
  45. transformer/checkpoint-1685/scheduler.pt +3 -0
  46. transformer/checkpoint-1685/tokenizer.json +3 -0
  47. transformer/checkpoint-1685/tokenizer_config.json +15 -0
  48. transformer/checkpoint-1685/trainer_state.json +577 -0
  49. transformer/checkpoint-1685/training_args.bin +3 -0
  50. transformer/checkpoint-337/config.json +39 -0
.gitattributes CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ transformer/checkpoint-1011/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ transformer/checkpoint-1348/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ transformer/checkpoint-1685/tokenizer.json filter=lfs diff=lfs merge=lfs -text
39
+ transformer/checkpoint-337/tokenizer.json filter=lfs diff=lfs merge=lfs -text
40
+ transformer/checkpoint-674/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
+ transformer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ pipeline_tag: text-classification
4
+ base_model: FacebookAI/xlm-roberta-base
5
+ tags:
6
+ - text-classification
7
+ - binary-classification
8
+ - amis
9
+ - agriculture
10
+ language: multilingual
11
+ ---
12
+
13
+ # AMIS Commodity Classifier
14
+
15
+ This model repository contains artifacts from an AMIS commodity relevance classifier training run.
16
+ It includes the Transformer model, any configured TF-IDF or sentence-embedding baselines, prediction files, and the training report.
17
+
18
+ - Dataset: `faodl/amis-agri-vegetable_oils`
19
+ - Dataset subset: ``
20
+ - Dataset revision: `main`
21
+ - Text column: `chunk_text`
22
+ - Label column: `label`
23
+ - Transformer: `FacebookAI/xlm-roberta-base`
24
+ - Generated at: `2026-06-09T16:39:33.521615+00:00`
25
+
26
+ ## Dataset Summary
27
+
28
+ | Split | Rows | Label 0 | Label 1 | Unique groups | Mean text length |
29
+ | --- | ---: | ---: | ---: | ---: | ---: |
30
+ | train | 5382 | 4040 | 1342 | 2395 | 706.0 |
31
+ | validation | 1186 | 900 | 286 | 513 | 711.4 |
32
+ | test | 1082 | 847 | 235 | 514 | 699.9 |
33
+
34
+ ## Threshold Comparison on Validation Split
35
+
36
+ Validation metrics document threshold selection and tuning behavior; test metrics remain the primary estimate of out-of-sample performance.
37
+
38
+ | Model | Threshold | Accuracy | Precision | Recall | F1 | ROC AUC | Average precision |
39
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
40
+ | logistic_tfidf | 0.500 | 0.879 | 0.738 | 0.769 | 0.753 | 0.929 | 0.804 |
41
+ | logistic_tfidf | 0.486 | 0.880 | 0.732 | 0.794 | 0.762 | 0.929 | 0.804 |
42
+ | xgboost_tfidf | 0.500 | 0.865 | 0.797 | 0.591 | 0.679 | 0.926 | 0.816 |
43
+ | xgboost_tfidf | 0.357 | 0.882 | 0.763 | 0.741 | 0.752 | 0.926 | 0.816 |
44
+ | embedding-logistic_sentence_embeddings | 0.500 | 0.847 | 0.632 | 0.881 | 0.736 | 0.925 | 0.802 |
45
+ | embedding-logistic_sentence_embeddings | 0.620 | 0.871 | 0.711 | 0.783 | 0.745 | 0.925 | 0.802 |
46
+ | embedding-svm_sentence_embeddings | 0.500 | 0.853 | 0.767 | 0.563 | 0.649 | 0.918 | 0.787 |
47
+ | embedding-svm_sentence_embeddings | 0.357 | 0.865 | 0.685 | 0.815 | 0.744 | 0.918 | 0.787 |
48
+ | embedding-lightgbm_sentence_embeddings | 0.500 | 0.881 | 0.760 | 0.741 | 0.750 | 0.930 | 0.829 |
49
+ | embedding-lightgbm_sentence_embeddings | 0.318 | 0.879 | 0.723 | 0.804 | 0.762 | 0.930 | 0.829 |
50
+ | transformer | 0.500 | 0.896 | 0.762 | 0.829 | 0.794 | 0.940 | 0.872 |
51
+ | transformer | 0.625 | 0.910 | 0.816 | 0.808 | 0.812 | 0.940 | 0.872 |
52
+
53
+ ## Threshold Comparison on Test Split
54
+
55
+ | Model | Threshold | Accuracy | Precision | Recall | F1 | ROC AUC | Average precision |
56
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
57
+ | logistic_tfidf | 0.500 | 0.896 | 0.766 | 0.753 | 0.760 | 0.937 | 0.817 |
58
+ | logistic_tfidf | 0.486 | 0.896 | 0.756 | 0.766 | 0.761 | 0.937 | 0.817 |
59
+ | xgboost_tfidf | 0.500 | 0.878 | 0.772 | 0.621 | 0.689 | 0.923 | 0.785 |
60
+ | xgboost_tfidf | 0.357 | 0.882 | 0.738 | 0.706 | 0.722 | 0.923 | 0.785 |
61
+ | embedding-logistic_sentence_embeddings | 0.500 | 0.835 | 0.583 | 0.834 | 0.687 | 0.919 | 0.763 |
62
+ | embedding-logistic_sentence_embeddings | 0.620 | 0.857 | 0.648 | 0.745 | 0.693 | 0.919 | 0.763 |
63
+ | embedding-svm_sentence_embeddings | 0.500 | 0.871 | 0.768 | 0.579 | 0.660 | 0.908 | 0.758 |
64
+ | embedding-svm_sentence_embeddings | 0.357 | 0.841 | 0.611 | 0.740 | 0.669 | 0.908 | 0.758 |
65
+ | embedding-lightgbm_sentence_embeddings | 0.500 | 0.879 | 0.745 | 0.672 | 0.707 | 0.921 | 0.793 |
66
+ | embedding-lightgbm_sentence_embeddings | 0.318 | 0.872 | 0.689 | 0.753 | 0.720 | 0.921 | 0.793 |
67
+ | transformer | 0.500 | 0.891 | 0.741 | 0.766 | 0.753 | 0.930 | 0.820 |
68
+ | transformer | 0.625 | 0.894 | 0.759 | 0.749 | 0.754 | 0.930 | 0.820 |
69
+
70
+ ## Confusion Matrices on Test Split
71
+
72
+ Rows are true labels and columns are predicted labels.
73
+
74
+ ### logistic_tfidf at threshold 0.500
75
+
76
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
77
+ | --- | ---: | ---: |
78
+ | NOT_RELEVANT | 793 | 54 |
79
+ | RELEVANT | 58 | 177 |
80
+
81
+ ### logistic_tfidf at threshold 0.486
82
+
83
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
84
+ | --- | ---: | ---: |
85
+ | NOT_RELEVANT | 789 | 58 |
86
+ | RELEVANT | 55 | 180 |
87
+
88
+ ### xgboost_tfidf at threshold 0.500
89
+
90
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
91
+ | --- | ---: | ---: |
92
+ | NOT_RELEVANT | 804 | 43 |
93
+ | RELEVANT | 89 | 146 |
94
+
95
+ ### xgboost_tfidf at threshold 0.357
96
+
97
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
98
+ | --- | ---: | ---: |
99
+ | NOT_RELEVANT | 788 | 59 |
100
+ | RELEVANT | 69 | 166 |
101
+
102
+ ### embedding-logistic_sentence_embeddings at threshold 0.500
103
+
104
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
105
+ | --- | ---: | ---: |
106
+ | NOT_RELEVANT | 707 | 140 |
107
+ | RELEVANT | 39 | 196 |
108
+
109
+ ### embedding-logistic_sentence_embeddings at threshold 0.620
110
+
111
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
112
+ | --- | ---: | ---: |
113
+ | NOT_RELEVANT | 752 | 95 |
114
+ | RELEVANT | 60 | 175 |
115
+
116
+ ### embedding-svm_sentence_embeddings at threshold 0.500
117
+
118
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
119
+ | --- | ---: | ---: |
120
+ | NOT_RELEVANT | 806 | 41 |
121
+ | RELEVANT | 99 | 136 |
122
+
123
+ ### embedding-svm_sentence_embeddings at threshold 0.357
124
+
125
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
126
+ | --- | ---: | ---: |
127
+ | NOT_RELEVANT | 736 | 111 |
128
+ | RELEVANT | 61 | 174 |
129
+
130
+ ### embedding-lightgbm_sentence_embeddings at threshold 0.500
131
+
132
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
133
+ | --- | ---: | ---: |
134
+ | NOT_RELEVANT | 793 | 54 |
135
+ | RELEVANT | 77 | 158 |
136
+
137
+ ### embedding-lightgbm_sentence_embeddings at threshold 0.318
138
+
139
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
140
+ | --- | ---: | ---: |
141
+ | NOT_RELEVANT | 767 | 80 |
142
+ | RELEVANT | 58 | 177 |
143
+
144
+ ### transformer at threshold 0.500
145
+
146
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
147
+ | --- | ---: | ---: |
148
+ | NOT_RELEVANT | 784 | 63 |
149
+ | RELEVANT | 55 | 180 |
150
+
151
+ ### transformer at threshold 0.625
152
+
153
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
154
+ | --- | ---: | ---: |
155
+ | NOT_RELEVANT | 791 | 56 |
156
+ | RELEVANT | 59 | 176 |
157
+
158
+
159
+ ## Validation-Tuned Thresholds
160
+
161
+ - `logistic_tfidf`: threshold `0.486` (validation F1 `0.762`); test F1 change vs 0.5: `+0.001`.
162
+ - `xgboost_tfidf`: threshold `0.357` (validation F1 `0.752`); test F1 change vs 0.5: `+0.033`.
163
+ - `embedding-logistic_sentence_embeddings`: threshold `0.620` (validation F1 `0.745`); test F1 change vs 0.5: `+0.007`.
164
+ - `embedding-svm_sentence_embeddings`: threshold `0.357` (validation F1 `0.744`); test F1 change vs 0.5: `+0.009`.
165
+ - `embedding-lightgbm_sentence_embeddings`: threshold `0.318` (validation F1 `0.762`); test F1 change vs 0.5: `+0.013`.
166
+ - `transformer`: threshold `0.625` (validation F1 `0.812`); test F1 change vs 0.5: `+0.001`.
167
+
168
+ ## Artifacts
169
+
170
+ - `logistic_tfidf`: `/content/agri-vegetable_oils-classifier/baselines/logistic`
171
+ - `xgboost_tfidf`: `/content/agri-vegetable_oils-classifier/baselines/xgboost`
172
+ - `embedding-logistic_sentence_embeddings`: `/content/agri-vegetable_oils-classifier/baselines/embedding-logistic`
173
+ - `embedding-svm_sentence_embeddings`: `/content/agri-vegetable_oils-classifier/baselines/embedding-svm`
174
+ - `embedding-lightgbm_sentence_embeddings`: `/content/agri-vegetable_oils-classifier/baselines/embedding-lightgbm`
175
+ - `transformer`: `/content/agri-vegetable_oils-classifier/transformer`
176
+
177
+ ## Inference
178
+
179
+ Install the runtime dependencies:
180
+
181
+ ```bash
182
+ pip install transformers torch huggingface_hub pandas joblib scikit-learn xgboost lightgbm
183
+ ```
184
+
185
+ ### Transformer
186
+
187
+ ```python
188
+ import torch
189
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
190
+
191
+ MODEL_ID = "faodl/agri-vegetable_oils-classifier"
192
+
193
+ texts = [
194
+ "Rice export prices increased after new procurement rules were announced.",
195
+ "The finance ministry released its monthly fuel tax bulletin.",
196
+ ]
197
+
198
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, subfolder="transformer")
199
+ model = AutoModelForSequenceClassification.from_pretrained(MODEL_ID, subfolder="transformer")
200
+ threshold = float(getattr(model.config, "threshold", 0.5))
201
+
202
+ encoded = tokenizer(
203
+ texts,
204
+ truncation=True,
205
+ padding=True,
206
+ max_length=256,
207
+ return_tensors="pt",
208
+ )
209
+
210
+ with torch.no_grad():
211
+ logits = model(**encoded).logits
212
+ probabilities = torch.softmax(logits, dim=-1)[:, 1].tolist()
213
+
214
+ for text, probability in zip(texts, probabilities):
215
+ label = model.config.id2label[int(probability >= threshold)]
216
+ print({"text": text, "probability_positive": probability, "label": label})
217
+ ```
218
+
219
+ ### TF-IDF Baselines
220
+
221
+ Available baseline names in this run: "logistic", "xgboost".
222
+
223
+ ```python
224
+ import json
225
+ import joblib
226
+ from huggingface_hub import hf_hub_download
227
+
228
+ MODEL_ID = "faodl/agri-vegetable_oils-classifier"
229
+ BASELINE = "logistic"
230
+
231
+ texts = [
232
+ "Maize production forecasts were revised after delayed rains.",
233
+ "The central bank published new exchange rate statistics.",
234
+ ]
235
+
236
+ model_path = hf_hub_download(
237
+ repo_id=MODEL_ID,
238
+ repo_type="model",
239
+ filename=f"baselines/{BASELINE}/{BASELINE}_tfidf.joblib",
240
+ )
241
+ report_path = hf_hub_download(
242
+ repo_id=MODEL_ID,
243
+ repo_type="model",
244
+ filename="report.json",
245
+ )
246
+
247
+ pipeline = joblib.load(model_path)
248
+ with open(report_path, encoding="utf-8") as handle:
249
+ report = json.load(handle)
250
+
251
+ threshold = next(
252
+ result["validation_best_threshold"]["threshold"]
253
+ for result in report["results"]
254
+ if result["model_type"] == f"{BASELINE}_tfidf"
255
+ )
256
+
257
+ probabilities = pipeline.predict_proba(texts)[:, 1]
258
+ for text, probability in zip(texts, probabilities):
259
+ label = "RELEVANT" if probability >= threshold else "NOT_RELEVANT"
260
+ print({"text": text, "probability_positive": float(probability), "label": label})
261
+ ```
262
+
263
+ ### Sentence-Embedding Baselines
264
+
265
+ Available embedding baseline names in this run: "embedding-logistic", "embedding-svm", "embedding-lightgbm".
266
+
267
+ ```python
268
+ import joblib
269
+ import torch
270
+ from huggingface_hub import hf_hub_download
271
+ from transformers import AutoModel, AutoTokenizer
272
+
273
+ MODEL_ID = "faodl/agri-vegetable_oils-classifier"
274
+ BASELINE = "embedding-logistic"
275
+
276
+ texts = [
277
+ "Wheat export inspections rose as demand from importers increased.",
278
+ "The sports ministry announced a new stadium renovation plan.",
279
+ ]
280
+
281
+ model_path = hf_hub_download(
282
+ repo_id=MODEL_ID,
283
+ repo_type="model",
284
+ filename=f"baselines/{BASELINE}/{BASELINE}.joblib",
285
+ )
286
+ artifact = joblib.load(model_path)
287
+ tokenizer = AutoTokenizer.from_pretrained(artifact["embedding_model_name"])
288
+ encoder = AutoModel.from_pretrained(artifact["embedding_model_name"])
289
+ encoder.eval()
290
+
291
+ encoded_batches = []
292
+ batch_size = artifact.get("embedding_batch_size", 64)
293
+ for start in range(0, len(texts), batch_size):
294
+ batch_texts = texts[start : start + batch_size]
295
+ inputs = tokenizer(
296
+ batch_texts,
297
+ padding=True,
298
+ truncation=True,
299
+ max_length=artifact.get("embedding_max_length", 256),
300
+ return_tensors="pt",
301
+ )
302
+ with torch.no_grad():
303
+ outputs = encoder(**inputs)
304
+ token_embeddings = outputs.last_hidden_state
305
+ attention_mask = inputs["attention_mask"].unsqueeze(-1).to(token_embeddings.dtype)
306
+ embeddings = (token_embeddings * attention_mask).sum(dim=1)
307
+ embeddings = embeddings / attention_mask.sum(dim=1).clamp(min=1e-9)
308
+ if artifact.get("normalize_embeddings", True):
309
+ embeddings = torch.nn.functional.normalize(embeddings, p=2, dim=1)
310
+ encoded_batches.append(embeddings)
311
+ embeddings = torch.cat(encoded_batches).numpy()
312
+ probabilities = artifact["classifier"].predict_proba(embeddings)[:, 1]
313
+ threshold = artifact["validation_best_threshold"]["threshold"]
314
+
315
+ for text, probability in zip(texts, probabilities):
316
+ label = "RELEVANT" if probability >= threshold else "NOT_RELEVANT"
317
+ print({"text": text, "probability_positive": float(probability), "label": label})
318
+ ```
319
+
320
+ ## Files
321
+
322
+ - `REPORT.md`: Markdown report for this training run.
323
+ - `report.json`: Machine-readable report containing metrics and thresholds.
324
+ - `transformer/`: Fine-tuned Transformer artifacts, when Transformer training is enabled.
325
+ - `baselines/`: TF-IDF and sentence-embedding baseline artifacts, when baseline training is enabled.
326
+ - `*/validation_predictions.csv` and `*/test_predictions.csv`: Split-level predictions.
REPORT.md ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AMIS Commodity Classifier Training Report
2
+
3
+ - Dataset: `faodl/amis-agri-vegetable_oils`
4
+ - Dataset subset: ``
5
+ - Dataset revision: `main`
6
+ - Text column: `chunk_text`
7
+ - Label column: `label`
8
+ - Transformer: `FacebookAI/xlm-roberta-base`
9
+ - Generated at: `2026-06-09T16:39:33.521615+00:00`
10
+
11
+ ## Dataset Summary
12
+
13
+ | Split | Rows | Label 0 | Label 1 | Unique groups | Mean text length |
14
+ | --- | ---: | ---: | ---: | ---: | ---: |
15
+ | train | 5382 | 4040 | 1342 | 2395 | 706.0 |
16
+ | validation | 1186 | 900 | 286 | 513 | 711.4 |
17
+ | test | 1082 | 847 | 235 | 514 | 699.9 |
18
+
19
+ ## Threshold Comparison on Validation Split
20
+
21
+ Validation metrics document threshold selection and tuning behavior; test metrics remain the primary estimate of out-of-sample performance.
22
+
23
+ | Model | Threshold | Accuracy | Precision | Recall | F1 | ROC AUC | Average precision |
24
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
25
+ | logistic_tfidf | 0.500 | 0.879 | 0.738 | 0.769 | 0.753 | 0.929 | 0.804 |
26
+ | logistic_tfidf | 0.486 | 0.880 | 0.732 | 0.794 | 0.762 | 0.929 | 0.804 |
27
+ | xgboost_tfidf | 0.500 | 0.865 | 0.797 | 0.591 | 0.679 | 0.926 | 0.816 |
28
+ | xgboost_tfidf | 0.357 | 0.882 | 0.763 | 0.741 | 0.752 | 0.926 | 0.816 |
29
+ | embedding-logistic_sentence_embeddings | 0.500 | 0.847 | 0.632 | 0.881 | 0.736 | 0.925 | 0.802 |
30
+ | embedding-logistic_sentence_embeddings | 0.620 | 0.871 | 0.711 | 0.783 | 0.745 | 0.925 | 0.802 |
31
+ | embedding-svm_sentence_embeddings | 0.500 | 0.853 | 0.767 | 0.563 | 0.649 | 0.918 | 0.787 |
32
+ | embedding-svm_sentence_embeddings | 0.357 | 0.865 | 0.685 | 0.815 | 0.744 | 0.918 | 0.787 |
33
+ | embedding-lightgbm_sentence_embeddings | 0.500 | 0.881 | 0.760 | 0.741 | 0.750 | 0.930 | 0.829 |
34
+ | embedding-lightgbm_sentence_embeddings | 0.318 | 0.879 | 0.723 | 0.804 | 0.762 | 0.930 | 0.829 |
35
+ | transformer | 0.500 | 0.896 | 0.762 | 0.829 | 0.794 | 0.940 | 0.872 |
36
+ | transformer | 0.625 | 0.910 | 0.816 | 0.808 | 0.812 | 0.940 | 0.872 |
37
+
38
+ ## Threshold Comparison on Test Split
39
+
40
+ | Model | Threshold | Accuracy | Precision | Recall | F1 | ROC AUC | Average precision |
41
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
42
+ | logistic_tfidf | 0.500 | 0.896 | 0.766 | 0.753 | 0.760 | 0.937 | 0.817 |
43
+ | logistic_tfidf | 0.486 | 0.896 | 0.756 | 0.766 | 0.761 | 0.937 | 0.817 |
44
+ | xgboost_tfidf | 0.500 | 0.878 | 0.772 | 0.621 | 0.689 | 0.923 | 0.785 |
45
+ | xgboost_tfidf | 0.357 | 0.882 | 0.738 | 0.706 | 0.722 | 0.923 | 0.785 |
46
+ | embedding-logistic_sentence_embeddings | 0.500 | 0.835 | 0.583 | 0.834 | 0.687 | 0.919 | 0.763 |
47
+ | embedding-logistic_sentence_embeddings | 0.620 | 0.857 | 0.648 | 0.745 | 0.693 | 0.919 | 0.763 |
48
+ | embedding-svm_sentence_embeddings | 0.500 | 0.871 | 0.768 | 0.579 | 0.660 | 0.908 | 0.758 |
49
+ | embedding-svm_sentence_embeddings | 0.357 | 0.841 | 0.611 | 0.740 | 0.669 | 0.908 | 0.758 |
50
+ | embedding-lightgbm_sentence_embeddings | 0.500 | 0.879 | 0.745 | 0.672 | 0.707 | 0.921 | 0.793 |
51
+ | embedding-lightgbm_sentence_embeddings | 0.318 | 0.872 | 0.689 | 0.753 | 0.720 | 0.921 | 0.793 |
52
+ | transformer | 0.500 | 0.891 | 0.741 | 0.766 | 0.753 | 0.930 | 0.820 |
53
+ | transformer | 0.625 | 0.894 | 0.759 | 0.749 | 0.754 | 0.930 | 0.820 |
54
+
55
+ ## Confusion Matrices on Test Split
56
+
57
+ Rows are true labels and columns are predicted labels.
58
+
59
+ ### logistic_tfidf at threshold 0.500
60
+
61
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
62
+ | --- | ---: | ---: |
63
+ | NOT_RELEVANT | 793 | 54 |
64
+ | RELEVANT | 58 | 177 |
65
+
66
+ ### logistic_tfidf at threshold 0.486
67
+
68
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
69
+ | --- | ---: | ---: |
70
+ | NOT_RELEVANT | 789 | 58 |
71
+ | RELEVANT | 55 | 180 |
72
+
73
+ ### xgboost_tfidf at threshold 0.500
74
+
75
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
76
+ | --- | ---: | ---: |
77
+ | NOT_RELEVANT | 804 | 43 |
78
+ | RELEVANT | 89 | 146 |
79
+
80
+ ### xgboost_tfidf at threshold 0.357
81
+
82
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
83
+ | --- | ---: | ---: |
84
+ | NOT_RELEVANT | 788 | 59 |
85
+ | RELEVANT | 69 | 166 |
86
+
87
+ ### embedding-logistic_sentence_embeddings at threshold 0.500
88
+
89
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
90
+ | --- | ---: | ---: |
91
+ | NOT_RELEVANT | 707 | 140 |
92
+ | RELEVANT | 39 | 196 |
93
+
94
+ ### embedding-logistic_sentence_embeddings at threshold 0.620
95
+
96
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
97
+ | --- | ---: | ---: |
98
+ | NOT_RELEVANT | 752 | 95 |
99
+ | RELEVANT | 60 | 175 |
100
+
101
+ ### embedding-svm_sentence_embeddings at threshold 0.500
102
+
103
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
104
+ | --- | ---: | ---: |
105
+ | NOT_RELEVANT | 806 | 41 |
106
+ | RELEVANT | 99 | 136 |
107
+
108
+ ### embedding-svm_sentence_embeddings at threshold 0.357
109
+
110
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
111
+ | --- | ---: | ---: |
112
+ | NOT_RELEVANT | 736 | 111 |
113
+ | RELEVANT | 61 | 174 |
114
+
115
+ ### embedding-lightgbm_sentence_embeddings at threshold 0.500
116
+
117
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
118
+ | --- | ---: | ---: |
119
+ | NOT_RELEVANT | 793 | 54 |
120
+ | RELEVANT | 77 | 158 |
121
+
122
+ ### embedding-lightgbm_sentence_embeddings at threshold 0.318
123
+
124
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
125
+ | --- | ---: | ---: |
126
+ | NOT_RELEVANT | 767 | 80 |
127
+ | RELEVANT | 58 | 177 |
128
+
129
+ ### transformer at threshold 0.500
130
+
131
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
132
+ | --- | ---: | ---: |
133
+ | NOT_RELEVANT | 784 | 63 |
134
+ | RELEVANT | 55 | 180 |
135
+
136
+ ### transformer at threshold 0.625
137
+
138
+ | True / Predicted | NOT_RELEVANT | RELEVANT |
139
+ | --- | ---: | ---: |
140
+ | NOT_RELEVANT | 791 | 56 |
141
+ | RELEVANT | 59 | 176 |
142
+
143
+
144
+ ## Validation-Tuned Thresholds
145
+
146
+ - `logistic_tfidf`: threshold `0.486` (validation F1 `0.762`); test F1 change vs 0.5: `+0.001`.
147
+ - `xgboost_tfidf`: threshold `0.357` (validation F1 `0.752`); test F1 change vs 0.5: `+0.033`.
148
+ - `embedding-logistic_sentence_embeddings`: threshold `0.620` (validation F1 `0.745`); test F1 change vs 0.5: `+0.007`.
149
+ - `embedding-svm_sentence_embeddings`: threshold `0.357` (validation F1 `0.744`); test F1 change vs 0.5: `+0.009`.
150
+ - `embedding-lightgbm_sentence_embeddings`: threshold `0.318` (validation F1 `0.762`); test F1 change vs 0.5: `+0.013`.
151
+ - `transformer`: threshold `0.625` (validation F1 `0.812`); test F1 change vs 0.5: `+0.001`.
152
+
153
+ ## Artifacts
154
+
155
+ - `logistic_tfidf`: `/content/agri-vegetable_oils-classifier/baselines/logistic`
156
+ - `xgboost_tfidf`: `/content/agri-vegetable_oils-classifier/baselines/xgboost`
157
+ - `embedding-logistic_sentence_embeddings`: `/content/agri-vegetable_oils-classifier/baselines/embedding-logistic`
158
+ - `embedding-svm_sentence_embeddings`: `/content/agri-vegetable_oils-classifier/baselines/embedding-svm`
159
+ - `embedding-lightgbm_sentence_embeddings`: `/content/agri-vegetable_oils-classifier/baselines/embedding-lightgbm`
160
+ - `transformer`: `/content/agri-vegetable_oils-classifier/transformer`
baselines/embedding-lightgbm/embedding-lightgbm.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2258a7018925b200d107fa5f3bc69087addd1c7c031c80934a40362c4f16616f
3
+ size 1445198
baselines/embedding-lightgbm/test_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/embedding-lightgbm/validation_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/embedding-logistic/embedding-logistic.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbf732766810266d544f4c727329f789a85049a2fdd61f24d687911daf16d8bb
3
+ size 2821
baselines/embedding-logistic/test_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/embedding-logistic/validation_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/embedding-svm/embedding-svm.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59d393c44af8025cc466853f7cde0ec25151a32dd8c697a17f446d45490e82bf
3
+ size 11770
baselines/embedding-svm/test_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/embedding-svm/validation_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/logistic/logistic_tfidf.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65f983a894726a368a8019daecd45dcf02308dbba12b8efa7872127778e0b8c9
3
+ size 2443428
baselines/logistic/test_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/logistic/validation_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/xgboost/test_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/xgboost/validation_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
baselines/xgboost/xgboost_tfidf.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:585f03a62fb7d2456a708abf50613c5d0cc806c521cf5234b3a28912fe720eae
3
+ size 2547620
report.json ADDED
@@ -0,0 +1,1257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "created_at": "2026-06-09T16:39:33.521615+00:00",
3
+ "config": {
4
+ "hf_dataset": "faodl/amis-agri-vegetable_oils",
5
+ "hf_subset": null,
6
+ "hf_revision": "main",
7
+ "train_split": "train",
8
+ "validation_split": "validation",
9
+ "test_split": "test",
10
+ "text_col": "chunk_text",
11
+ "label_col": "label",
12
+ "group_col": "id",
13
+ "id_col": "chunk_id",
14
+ "model_name": "FacebookAI/xlm-roberta-base",
15
+ "output_dir": "/content/agri-vegetable_oils-classifier",
16
+ "max_length": 256,
17
+ "learning_rate": 2e-05,
18
+ "weight_decay": 0.01,
19
+ "num_train_epochs": 5.0,
20
+ "per_device_train_batch_size": 16,
21
+ "per_device_eval_batch_size": 32,
22
+ "gradient_accumulation_steps": 1,
23
+ "warmup_ratio": 0.1,
24
+ "early_stopping_patience": 2,
25
+ "seed": 42,
26
+ "metric_for_best_model": "f1",
27
+ "skip_transformer": false,
28
+ "skip_baselines": false,
29
+ "baseline_models": [
30
+ "logistic",
31
+ "xgboost",
32
+ "embedding-logistic",
33
+ "embedding-svm",
34
+ "embedding-lightgbm"
35
+ ],
36
+ "tfidf_max_features": 50000,
37
+ "embedding_model_name": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
38
+ "embedding_batch_size": 64,
39
+ "positive_label_name": "RELEVANT",
40
+ "negative_label_name": "NOT_RELEVANT",
41
+ "push_to_hub": true,
42
+ "hub_model_id": "faodl/agri-vegetable_oils-classifier",
43
+ "hub_private_repo": false
44
+ },
45
+ "dataset_summary": {
46
+ "train": {
47
+ "rows": 5382,
48
+ "labels": {
49
+ "0": 4040,
50
+ "1": 1342
51
+ },
52
+ "unique_groups": 2395,
53
+ "text_length_mean": 705.9933110367894,
54
+ "text_length_median": 795.0
55
+ },
56
+ "validation": {
57
+ "rows": 1186,
58
+ "labels": {
59
+ "0": 900,
60
+ "1": 286
61
+ },
62
+ "unique_groups": 513,
63
+ "text_length_mean": 711.4317032040473,
64
+ "text_length_median": 795.0
65
+ },
66
+ "test": {
67
+ "rows": 1082,
68
+ "labels": {
69
+ "0": 847,
70
+ "1": 235
71
+ },
72
+ "unique_groups": 514,
73
+ "text_length_mean": 699.8761552680222,
74
+ "text_length_median": 794.0
75
+ }
76
+ },
77
+ "results": [
78
+ {
79
+ "model_type": "logistic_tfidf",
80
+ "model_name": "logistic",
81
+ "artifact_dir": "/content/agri-vegetable_oils-classifier/baselines/logistic",
82
+ "artifact_file": "/content/agri-vegetable_oils-classifier/baselines/logistic/logistic_tfidf.joblib",
83
+ "validation_best_threshold": {
84
+ "threshold": 0.4857631349436084,
85
+ "f1": 0.761744966442953,
86
+ "precision": 0.7322580645161291,
87
+ "recall": 0.7937062937062938
88
+ },
89
+ "validation_default_0_5": {
90
+ "threshold": 0.5,
91
+ "accuracy": 0.8785834738617201,
92
+ "precision": 0.738255033557047,
93
+ "recall": 0.7692307692307693,
94
+ "f1": 0.7534246575342466,
95
+ "confusion_matrix": [
96
+ [
97
+ 822,
98
+ 78
99
+ ],
100
+ [
101
+ 66,
102
+ 220
103
+ ]
104
+ ],
105
+ "classification_report": {
106
+ "NOT_RELEVANT": {
107
+ "precision": 0.9256756756756757,
108
+ "recall": 0.9133333333333333,
109
+ "f1-score": 0.9194630872483222,
110
+ "support": 900.0
111
+ },
112
+ "RELEVANT": {
113
+ "precision": 0.738255033557047,
114
+ "recall": 0.7692307692307693,
115
+ "f1-score": 0.7534246575342466,
116
+ "support": 286.0
117
+ },
118
+ "accuracy": 0.8785834738617201,
119
+ "macro avg": {
120
+ "precision": 0.8319653546163613,
121
+ "recall": 0.8412820512820514,
122
+ "f1-score": 0.8364438723912844,
123
+ "support": 1186.0
124
+ },
125
+ "weighted avg": {
126
+ "precision": 0.8804798041361076,
127
+ "recall": 0.8785834738617201,
128
+ "f1-score": 0.8794234659176091,
129
+ "support": 1186.0
130
+ }
131
+ },
132
+ "roc_auc": 0.9292929292929292,
133
+ "average_precision": 0.8035576096480787
134
+ },
135
+ "validation_optimal_threshold": {
136
+ "threshold": 0.4857631349436084,
137
+ "accuracy": 0.8802698145025295,
138
+ "precision": 0.7322580645161291,
139
+ "recall": 0.7937062937062938,
140
+ "f1": 0.761744966442953,
141
+ "confusion_matrix": [
142
+ [
143
+ 817,
144
+ 83
145
+ ],
146
+ [
147
+ 59,
148
+ 227
149
+ ]
150
+ ],
151
+ "classification_report": {
152
+ "NOT_RELEVANT": {
153
+ "precision": 0.932648401826484,
154
+ "recall": 0.9077777777777778,
155
+ "f1-score": 0.920045045045045,
156
+ "support": 900.0
157
+ },
158
+ "RELEVANT": {
159
+ "precision": 0.7322580645161291,
160
+ "recall": 0.7937062937062938,
161
+ "f1-score": 0.761744966442953,
162
+ "support": 286.0
163
+ },
164
+ "accuracy": 0.8802698145025295,
165
+ "macro avg": {
166
+ "precision": 0.8324532331713066,
167
+ "recall": 0.8507420357420358,
168
+ "f1-score": 0.840895005743999,
169
+ "support": 1186.0
170
+ },
171
+ "weighted avg": {
172
+ "precision": 0.884324930940513,
173
+ "recall": 0.8802698145025295,
174
+ "f1-score": 0.8818715016384697,
175
+ "support": 1186.0
176
+ }
177
+ },
178
+ "roc_auc": 0.9292929292929292,
179
+ "average_precision": 0.8035576096480787
180
+ },
181
+ "test_default_0_5": {
182
+ "threshold": 0.5,
183
+ "accuracy": 0.8964879852125693,
184
+ "precision": 0.7662337662337663,
185
+ "recall": 0.7531914893617021,
186
+ "f1": 0.759656652360515,
187
+ "confusion_matrix": [
188
+ [
189
+ 793,
190
+ 54
191
+ ],
192
+ [
193
+ 58,
194
+ 177
195
+ ]
196
+ ],
197
+ "classification_report": {
198
+ "NOT_RELEVANT": {
199
+ "precision": 0.9318448883666275,
200
+ "recall": 0.9362455726092089,
201
+ "f1-score": 0.934040047114252,
202
+ "support": 847.0
203
+ },
204
+ "RELEVANT": {
205
+ "precision": 0.7662337662337663,
206
+ "recall": 0.7531914893617021,
207
+ "f1-score": 0.759656652360515,
208
+ "support": 235.0
209
+ },
210
+ "accuracy": 0.8964879852125693,
211
+ "macro avg": {
212
+ "precision": 0.8490393273001968,
213
+ "recall": 0.8447185309854555,
214
+ "f1-score": 0.8468483497373835,
215
+ "support": 1082.0
216
+ },
217
+ "weighted avg": {
218
+ "precision": 0.8958757444653128,
219
+ "recall": 0.8964879852125693,
220
+ "f1-score": 0.896165649917276,
221
+ "support": 1082.0
222
+ }
223
+ },
224
+ "roc_auc": 0.9370946268431761,
225
+ "average_precision": 0.8172782602303534
226
+ },
227
+ "test_optimal_threshold": {
228
+ "threshold": 0.4857631349436084,
229
+ "accuracy": 0.8955637707948244,
230
+ "precision": 0.7563025210084033,
231
+ "recall": 0.7659574468085106,
232
+ "f1": 0.7610993657505285,
233
+ "confusion_matrix": [
234
+ [
235
+ 789,
236
+ 58
237
+ ],
238
+ [
239
+ 55,
240
+ 180
241
+ ]
242
+ ],
243
+ "classification_report": {
244
+ "NOT_RELEVANT": {
245
+ "precision": 0.9348341232227488,
246
+ "recall": 0.9315230224321134,
247
+ "f1-score": 0.9331756357185098,
248
+ "support": 847.0
249
+ },
250
+ "RELEVANT": {
251
+ "precision": 0.7563025210084033,
252
+ "recall": 0.7659574468085106,
253
+ "f1-score": 0.7610993657505285,
254
+ "support": 235.0
255
+ },
256
+ "accuracy": 0.8955637707948244,
257
+ "macro avg": {
258
+ "precision": 0.8455683221155761,
259
+ "recall": 0.848740234620312,
260
+ "f1-score": 0.8471375007345192,
261
+ "support": 1082.0
262
+ },
263
+ "weighted avg": {
264
+ "precision": 0.8960587752371932,
265
+ "recall": 0.8955637707948244,
266
+ "f1-score": 0.8958023238493087,
267
+ "support": 1082.0
268
+ }
269
+ },
270
+ "roc_auc": 0.9370946268431761,
271
+ "average_precision": 0.8172782602303534
272
+ }
273
+ },
274
+ {
275
+ "model_type": "xgboost_tfidf",
276
+ "model_name": "xgboost",
277
+ "artifact_dir": "/content/agri-vegetable_oils-classifier/baselines/xgboost",
278
+ "artifact_file": "/content/agri-vegetable_oils-classifier/baselines/xgboost/xgboost_tfidf.joblib",
279
+ "validation_best_threshold": {
280
+ "threshold": 0.35652926564216614,
281
+ "f1": 0.75177304964539,
282
+ "precision": 0.762589928057554,
283
+ "recall": 0.7412587412587412
284
+ },
285
+ "validation_default_0_5": {
286
+ "threshold": 0.5,
287
+ "accuracy": 0.8650927487352446,
288
+ "precision": 0.7971698113207547,
289
+ "recall": 0.5909090909090909,
290
+ "f1": 0.678714859437751,
291
+ "confusion_matrix": [
292
+ [
293
+ 857,
294
+ 43
295
+ ],
296
+ [
297
+ 117,
298
+ 169
299
+ ]
300
+ ],
301
+ "classification_report": {
302
+ "NOT_RELEVANT": {
303
+ "precision": 0.8798767967145791,
304
+ "recall": 0.9522222222222222,
305
+ "f1-score": 0.9146211312700107,
306
+ "support": 900.0
307
+ },
308
+ "RELEVANT": {
309
+ "precision": 0.7971698113207547,
310
+ "recall": 0.5909090909090909,
311
+ "f1-score": 0.678714859437751,
312
+ "support": 286.0
313
+ },
314
+ "accuracy": 0.8650927487352446,
315
+ "macro avg": {
316
+ "precision": 0.838523304017667,
317
+ "recall": 0.7715656565656566,
318
+ "f1-score": 0.7966679953538809,
319
+ "support": 1186.0
320
+ },
321
+ "weighted avg": {
322
+ "precision": 0.8599322791575522,
323
+ "recall": 0.8650927487352446,
324
+ "f1-score": 0.8577331095634118,
325
+ "support": 1186.0
326
+ }
327
+ },
328
+ "roc_auc": 0.925924630924631,
329
+ "average_precision": 0.8160285877602881
330
+ },
331
+ "validation_optimal_threshold": {
332
+ "threshold": 0.35652926564216614,
333
+ "accuracy": 0.8819561551433389,
334
+ "precision": 0.762589928057554,
335
+ "recall": 0.7412587412587412,
336
+ "f1": 0.75177304964539,
337
+ "confusion_matrix": [
338
+ [
339
+ 834,
340
+ 66
341
+ ],
342
+ [
343
+ 74,
344
+ 212
345
+ ]
346
+ ],
347
+ "classification_report": {
348
+ "NOT_RELEVANT": {
349
+ "precision": 0.9185022026431718,
350
+ "recall": 0.9266666666666666,
351
+ "f1-score": 0.922566371681416,
352
+ "support": 900.0
353
+ },
354
+ "RELEVANT": {
355
+ "precision": 0.762589928057554,
356
+ "recall": 0.7412587412587412,
357
+ "f1-score": 0.75177304964539,
358
+ "support": 286.0
359
+ },
360
+ "accuracy": 0.8819561551433389,
361
+ "macro avg": {
362
+ "precision": 0.8405460653503629,
363
+ "recall": 0.833962703962704,
364
+ "f1-score": 0.8371697106634031,
365
+ "support": 1186.0
366
+ },
367
+ "weighted avg": {
368
+ "precision": 0.8809044703232,
369
+ "recall": 0.8819561551433389,
370
+ "f1-score": 0.8813801237030826,
371
+ "support": 1186.0
372
+ }
373
+ },
374
+ "roc_auc": 0.925924630924631,
375
+ "average_precision": 0.8160285877602881
376
+ },
377
+ "test_default_0_5": {
378
+ "threshold": 0.5,
379
+ "accuracy": 0.878003696857671,
380
+ "precision": 0.7724867724867724,
381
+ "recall": 0.6212765957446809,
382
+ "f1": 0.6886792452830188,
383
+ "confusion_matrix": [
384
+ [
385
+ 804,
386
+ 43
387
+ ],
388
+ [
389
+ 89,
390
+ 146
391
+ ]
392
+ ],
393
+ "classification_report": {
394
+ "NOT_RELEVANT": {
395
+ "precision": 0.9003359462486002,
396
+ "recall": 0.9492325855962219,
397
+ "f1-score": 0.9241379310344827,
398
+ "support": 847.0
399
+ },
400
+ "RELEVANT": {
401
+ "precision": 0.7724867724867724,
402
+ "recall": 0.6212765957446809,
403
+ "f1-score": 0.6886792452830188,
404
+ "support": 235.0
405
+ },
406
+ "accuracy": 0.878003696857671,
407
+ "macro avg": {
408
+ "precision": 0.8364113593676863,
409
+ "recall": 0.7852545906704513,
410
+ "f1-score": 0.8064085881587508,
411
+ "support": 1082.0
412
+ },
413
+ "weighted avg": {
414
+ "precision": 0.872568334572048,
415
+ "recall": 0.878003696857671,
416
+ "f1-score": 0.8729985676781111,
417
+ "support": 1082.0
418
+ }
419
+ },
420
+ "roc_auc": 0.9232485116430957,
421
+ "average_precision": 0.784628854256074
422
+ },
423
+ "test_optimal_threshold": {
424
+ "threshold": 0.35652926564216614,
425
+ "accuracy": 0.8817005545286506,
426
+ "precision": 0.7377777777777778,
427
+ "recall": 0.7063829787234043,
428
+ "f1": 0.7217391304347827,
429
+ "confusion_matrix": [
430
+ [
431
+ 788,
432
+ 59
433
+ ],
434
+ [
435
+ 69,
436
+ 166
437
+ ]
438
+ ],
439
+ "classification_report": {
440
+ "NOT_RELEVANT": {
441
+ "precision": 0.9194865810968494,
442
+ "recall": 0.9303423848878394,
443
+ "f1-score": 0.9248826291079812,
444
+ "support": 847.0
445
+ },
446
+ "RELEVANT": {
447
+ "precision": 0.7377777777777778,
448
+ "recall": 0.7063829787234043,
449
+ "f1-score": 0.7217391304347827,
450
+ "support": 235.0
451
+ },
452
+ "accuracy": 0.8817005545286506,
453
+ "macro avg": {
454
+ "precision": 0.8286321794373136,
455
+ "recall": 0.8183626818056218,
456
+ "f1-score": 0.823310879771382,
457
+ "support": 1082.0
458
+ },
459
+ "weighted avg": {
460
+ "precision": 0.880021175570064,
461
+ "recall": 0.8817005545286506,
462
+ "f1-score": 0.8807618137769262,
463
+ "support": 1082.0
464
+ }
465
+ },
466
+ "roc_auc": 0.9232485116430957,
467
+ "average_precision": 0.784628854256074
468
+ }
469
+ },
470
+ {
471
+ "model_type": "embedding-logistic_sentence_embeddings",
472
+ "model_name": "logistic",
473
+ "embedding_model_name": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
474
+ "artifact_dir": "/content/agri-vegetable_oils-classifier/baselines/embedding-logistic",
475
+ "artifact_file": "/content/agri-vegetable_oils-classifier/baselines/embedding-logistic/embedding-logistic.joblib",
476
+ "validation_best_threshold": {
477
+ "threshold": 0.620058536529541,
478
+ "f1": 0.7454242928452579,
479
+ "precision": 0.7111111111111111,
480
+ "recall": 0.7832167832167832
481
+ },
482
+ "validation_default_0_5": {
483
+ "threshold": 0.5,
484
+ "accuracy": 0.8473861720067454,
485
+ "precision": 0.631578947368421,
486
+ "recall": 0.8811188811188811,
487
+ "f1": 0.7357664233576642,
488
+ "confusion_matrix": [
489
+ [
490
+ 753,
491
+ 147
492
+ ],
493
+ [
494
+ 34,
495
+ 252
496
+ ]
497
+ ],
498
+ "classification_report": {
499
+ "NOT_RELEVANT": {
500
+ "precision": 0.9567979669631512,
501
+ "recall": 0.8366666666666667,
502
+ "f1-score": 0.8927089508002372,
503
+ "support": 900.0
504
+ },
505
+ "RELEVANT": {
506
+ "precision": 0.631578947368421,
507
+ "recall": 0.8811188811188811,
508
+ "f1-score": 0.7357664233576642,
509
+ "support": 286.0
510
+ },
511
+ "accuracy": 0.8473861720067454,
512
+ "macro avg": {
513
+ "precision": 0.7941884571657861,
514
+ "recall": 0.8588927738927739,
515
+ "f1-score": 0.8142376870789507,
516
+ "support": 1186.0
517
+ },
518
+ "weighted avg": {
519
+ "precision": 0.8783724698264793,
520
+ "recall": 0.8473861720067454,
521
+ "f1-score": 0.8548627763916572,
522
+ "support": 1186.0
523
+ }
524
+ },
525
+ "roc_auc": 0.924972804972805,
526
+ "average_precision": 0.8016689338420545
527
+ },
528
+ "validation_optimal_threshold": {
529
+ "threshold": 0.620058536529541,
530
+ "accuracy": 0.8709949409780776,
531
+ "precision": 0.7111111111111111,
532
+ "recall": 0.7832167832167832,
533
+ "f1": 0.7454242928452579,
534
+ "confusion_matrix": [
535
+ [
536
+ 809,
537
+ 91
538
+ ],
539
+ [
540
+ 62,
541
+ 224
542
+ ]
543
+ ],
544
+ "classification_report": {
545
+ "NOT_RELEVANT": {
546
+ "precision": 0.928817451205511,
547
+ "recall": 0.8988888888888888,
548
+ "f1-score": 0.9136081309994354,
549
+ "support": 900.0
550
+ },
551
+ "RELEVANT": {
552
+ "precision": 0.7111111111111111,
553
+ "recall": 0.7832167832167832,
554
+ "f1-score": 0.7454242928452579,
555
+ "support": 286.0
556
+ },
557
+ "accuracy": 0.8709949409780776,
558
+ "macro avg": {
559
+ "precision": 0.819964281158311,
560
+ "recall": 0.841052836052836,
561
+ "f1-score": 0.8295162119223467,
562
+ "support": 1186.0
563
+ },
564
+ "weighted avg": {
565
+ "precision": 0.8763182831894921,
566
+ "recall": 0.8709949409780776,
567
+ "f1-score": 0.8730511514782763,
568
+ "support": 1186.0
569
+ }
570
+ },
571
+ "roc_auc": 0.924972804972805,
572
+ "average_precision": 0.8016689338420545
573
+ },
574
+ "test_default_0_5": {
575
+ "threshold": 0.5,
576
+ "accuracy": 0.8345656192236599,
577
+ "precision": 0.5833333333333334,
578
+ "recall": 0.8340425531914893,
579
+ "f1": 0.6865148861646234,
580
+ "confusion_matrix": [
581
+ [
582
+ 707,
583
+ 140
584
+ ],
585
+ [
586
+ 39,
587
+ 196
588
+ ]
589
+ ],
590
+ "classification_report": {
591
+ "NOT_RELEVANT": {
592
+ "precision": 0.9477211796246648,
593
+ "recall": 0.8347107438016529,
594
+ "f1-score": 0.8876333961079724,
595
+ "support": 847.0
596
+ },
597
+ "RELEVANT": {
598
+ "precision": 0.5833333333333334,
599
+ "recall": 0.8340425531914893,
600
+ "f1-score": 0.6865148861646234,
601
+ "support": 235.0
602
+ },
603
+ "accuracy": 0.8345656192236599,
604
+ "macro avg": {
605
+ "precision": 0.7655272564789991,
606
+ "recall": 0.8343766484965711,
607
+ "f1-score": 0.7870741411362979,
608
+ "support": 1082.0
609
+ },
610
+ "weighted avg": {
611
+ "precision": 0.8685796418442001,
612
+ "recall": 0.8345656192236599,
613
+ "f1-score": 0.8439523888651934,
614
+ "support": 1082.0
615
+ }
616
+ },
617
+ "roc_auc": 0.9193850636790676,
618
+ "average_precision": 0.7629351060346423
619
+ },
620
+ "test_optimal_threshold": {
621
+ "threshold": 0.620058536529541,
622
+ "accuracy": 0.8567467652495379,
623
+ "precision": 0.6481481481481481,
624
+ "recall": 0.7446808510638298,
625
+ "f1": 0.693069306930693,
626
+ "confusion_matrix": [
627
+ [
628
+ 752,
629
+ 95
630
+ ],
631
+ [
632
+ 60,
633
+ 175
634
+ ]
635
+ ],
636
+ "classification_report": {
637
+ "NOT_RELEVANT": {
638
+ "precision": 0.9261083743842364,
639
+ "recall": 0.8878394332939787,
640
+ "f1-score": 0.9065702230259193,
641
+ "support": 847.0
642
+ },
643
+ "RELEVANT": {
644
+ "precision": 0.6481481481481481,
645
+ "recall": 0.7446808510638298,
646
+ "f1-score": 0.693069306930693,
647
+ "support": 235.0
648
+ },
649
+ "accuracy": 0.8567467652495379,
650
+ "macro avg": {
651
+ "precision": 0.7871282612661923,
652
+ "recall": 0.8162601421789042,
653
+ "f1-score": 0.7998197649783061,
654
+ "support": 1082.0
655
+ },
656
+ "weighted avg": {
657
+ "precision": 0.865738084952184,
658
+ "recall": 0.8567467652495379,
659
+ "f1-score": 0.8601998761845348,
660
+ "support": 1082.0
661
+ }
662
+ },
663
+ "roc_auc": 0.9193850636790676,
664
+ "average_precision": 0.7629351060346423
665
+ }
666
+ },
667
+ {
668
+ "model_type": "embedding-svm_sentence_embeddings",
669
+ "model_name": "svm",
670
+ "embedding_model_name": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
671
+ "artifact_dir": "/content/agri-vegetable_oils-classifier/baselines/embedding-svm",
672
+ "artifact_file": "/content/agri-vegetable_oils-classifier/baselines/embedding-svm/embedding-svm.joblib",
673
+ "validation_best_threshold": {
674
+ "threshold": 0.3566209883438831,
675
+ "f1": 0.7444089456869009,
676
+ "precision": 0.6852941176470588,
677
+ "recall": 0.8146853146853147
678
+ },
679
+ "validation_default_0_5": {
680
+ "threshold": 0.5,
681
+ "accuracy": 0.8532883642495784,
682
+ "precision": 0.7666666666666667,
683
+ "recall": 0.5629370629370629,
684
+ "f1": 0.6491935483870968,
685
+ "confusion_matrix": [
686
+ [
687
+ 851,
688
+ 49
689
+ ],
690
+ [
691
+ 125,
692
+ 161
693
+ ]
694
+ ],
695
+ "classification_report": {
696
+ "NOT_RELEVANT": {
697
+ "precision": 0.8719262295081968,
698
+ "recall": 0.9455555555555556,
699
+ "f1-score": 0.9072494669509595,
700
+ "support": 900.0
701
+ },
702
+ "RELEVANT": {
703
+ "precision": 0.7666666666666667,
704
+ "recall": 0.5629370629370629,
705
+ "f1-score": 0.6491935483870968,
706
+ "support": 286.0
707
+ },
708
+ "accuracy": 0.8532883642495784,
709
+ "macro avg": {
710
+ "precision": 0.8192964480874317,
711
+ "recall": 0.7542463092463092,
712
+ "f1-score": 0.7782215076690282,
713
+ "support": 1186.0
714
+ },
715
+ "weighted avg": {
716
+ "precision": 0.8465432320607452,
717
+ "recall": 0.8532883642495784,
718
+ "f1-score": 0.8450201307711409,
719
+ "support": 1186.0
720
+ }
721
+ },
722
+ "roc_auc": 0.9180031080031079,
723
+ "average_precision": 0.7868387610949265
724
+ },
725
+ "validation_optimal_threshold": {
726
+ "threshold": 0.3566209883438831,
727
+ "accuracy": 0.8650927487352446,
728
+ "precision": 0.6852941176470588,
729
+ "recall": 0.8146853146853147,
730
+ "f1": 0.744408945686901,
731
+ "confusion_matrix": [
732
+ [
733
+ 793,
734
+ 107
735
+ ],
736
+ [
737
+ 53,
738
+ 233
739
+ ]
740
+ ],
741
+ "classification_report": {
742
+ "NOT_RELEVANT": {
743
+ "precision": 0.9373522458628841,
744
+ "recall": 0.8811111111111111,
745
+ "f1-score": 0.9083619702176403,
746
+ "support": 900.0
747
+ },
748
+ "RELEVANT": {
749
+ "precision": 0.6852941176470588,
750
+ "recall": 0.8146853146853147,
751
+ "f1-score": 0.744408945686901,
752
+ "support": 286.0
753
+ },
754
+ "accuracy": 0.8650927487352446,
755
+ "macro avg": {
756
+ "precision": 0.8113231817549715,
757
+ "recall": 0.8478982128982129,
758
+ "f1-score": 0.8263854579522707,
759
+ "support": 1186.0
760
+ },
761
+ "weighted avg": {
762
+ "precision": 0.8765692571025754,
763
+ "recall": 0.8650927487352446,
764
+ "f1-score": 0.8688252374893171,
765
+ "support": 1186.0
766
+ }
767
+ },
768
+ "roc_auc": 0.9180031080031079,
769
+ "average_precision": 0.7868387610949265
770
+ },
771
+ "test_default_0_5": {
772
+ "threshold": 0.5,
773
+ "accuracy": 0.8706099815157117,
774
+ "precision": 0.768361581920904,
775
+ "recall": 0.5787234042553191,
776
+ "f1": 0.6601941747572816,
777
+ "confusion_matrix": [
778
+ [
779
+ 806,
780
+ 41
781
+ ],
782
+ [
783
+ 99,
784
+ 136
785
+ ]
786
+ ],
787
+ "classification_report": {
788
+ "NOT_RELEVANT": {
789
+ "precision": 0.8906077348066298,
790
+ "recall": 0.9515938606847698,
791
+ "f1-score": 0.9200913242009132,
792
+ "support": 847.0
793
+ },
794
+ "RELEVANT": {
795
+ "precision": 0.768361581920904,
796
+ "recall": 0.5787234042553191,
797
+ "f1-score": 0.6601941747572816,
798
+ "support": 235.0
799
+ },
800
+ "accuracy": 0.8706099815157117,
801
+ "macro avg": {
802
+ "precision": 0.829484658363767,
803
+ "recall": 0.7651586324700445,
804
+ "f1-score": 0.7901427494790974,
805
+ "support": 1082.0
806
+ },
807
+ "weighted avg": {
808
+ "precision": 0.8640570454090831,
809
+ "recall": 0.8706099815157117,
810
+ "f1-score": 0.8636441614289599,
811
+ "support": 1082.0
812
+ }
813
+ },
814
+ "roc_auc": 0.9079052475570851,
815
+ "average_precision": 0.7579762377095093
816
+ },
817
+ "test_optimal_threshold": {
818
+ "threshold": 0.3566209883438831,
819
+ "accuracy": 0.8410351201478743,
820
+ "precision": 0.6105263157894737,
821
+ "recall": 0.7404255319148936,
822
+ "f1": 0.6692307692307692,
823
+ "confusion_matrix": [
824
+ [
825
+ 736,
826
+ 111
827
+ ],
828
+ [
829
+ 61,
830
+ 174
831
+ ]
832
+ ],
833
+ "classification_report": {
834
+ "NOT_RELEVANT": {
835
+ "precision": 0.9234629861982434,
836
+ "recall": 0.8689492325855962,
837
+ "f1-score": 0.8953771289537713,
838
+ "support": 847.0
839
+ },
840
+ "RELEVANT": {
841
+ "precision": 0.6105263157894737,
842
+ "recall": 0.7404255319148936,
843
+ "f1-score": 0.6692307692307692,
844
+ "support": 235.0
845
+ },
846
+ "accuracy": 0.8410351201478743,
847
+ "macro avg": {
848
+ "precision": 0.7669946509938586,
849
+ "recall": 0.8046873822502449,
850
+ "f1-score": 0.7823039490922703,
851
+ "support": 1082.0
852
+ },
853
+ "weighted avg": {
854
+ "precision": 0.8554961492795181,
855
+ "recall": 0.8410351201478743,
856
+ "f1-score": 0.8462603133022875,
857
+ "support": 1082.0
858
+ }
859
+ },
860
+ "roc_auc": 0.9079052475570851,
861
+ "average_precision": 0.7579762377095093
862
+ }
863
+ },
864
+ {
865
+ "model_type": "embedding-lightgbm_sentence_embeddings",
866
+ "model_name": "lightgbm",
867
+ "embedding_model_name": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
868
+ "artifact_dir": "/content/agri-vegetable_oils-classifier/baselines/embedding-lightgbm",
869
+ "artifact_file": "/content/agri-vegetable_oils-classifier/baselines/embedding-lightgbm/embedding-lightgbm.joblib",
870
+ "validation_best_threshold": {
871
+ "threshold": 0.3184377968933787,
872
+ "f1": 0.7615894039735098,
873
+ "precision": 0.7232704402515723,
874
+ "recall": 0.8041958041958042
875
+ },
876
+ "validation_default_0_5": {
877
+ "threshold": 0.5,
878
+ "accuracy": 0.8811129848229342,
879
+ "precision": 0.7598566308243727,
880
+ "recall": 0.7412587412587412,
881
+ "f1": 0.7504424778761062,
882
+ "confusion_matrix": [
883
+ [
884
+ 833,
885
+ 67
886
+ ],
887
+ [
888
+ 74,
889
+ 212
890
+ ]
891
+ ],
892
+ "classification_report": {
893
+ "NOT_RELEVANT": {
894
+ "precision": 0.918412348401323,
895
+ "recall": 0.9255555555555556,
896
+ "f1-score": 0.9219701162147206,
897
+ "support": 900.0
898
+ },
899
+ "RELEVANT": {
900
+ "precision": 0.7598566308243727,
901
+ "recall": 0.7412587412587412,
902
+ "f1-score": 0.7504424778761062,
903
+ "support": 286.0
904
+ },
905
+ "accuracy": 0.8811129848229342,
906
+ "macro avg": {
907
+ "precision": 0.8391344896128479,
908
+ "recall": 0.8334071484071484,
909
+ "f1-score": 0.8362062970454134,
910
+ "support": 1186.0
911
+ },
912
+ "weighted avg": {
913
+ "precision": 0.8801771584965948,
914
+ "recall": 0.8811129848229342,
915
+ "f1-score": 0.8806067902747173,
916
+ "support": 1186.0
917
+ }
918
+ },
919
+ "roc_auc": 0.9304778554778556,
920
+ "average_precision": 0.8288086112166348
921
+ },
922
+ "validation_optimal_threshold": {
923
+ "threshold": 0.3184377968933787,
924
+ "accuracy": 0.8785834738617201,
925
+ "precision": 0.7232704402515723,
926
+ "recall": 0.8041958041958042,
927
+ "f1": 0.7615894039735099,
928
+ "confusion_matrix": [
929
+ [
930
+ 812,
931
+ 88
932
+ ],
933
+ [
934
+ 56,
935
+ 230
936
+ ]
937
+ ],
938
+ "classification_report": {
939
+ "NOT_RELEVANT": {
940
+ "precision": 0.9354838709677419,
941
+ "recall": 0.9022222222222223,
942
+ "f1-score": 0.918552036199095,
943
+ "support": 900.0
944
+ },
945
+ "RELEVANT": {
946
+ "precision": 0.7232704402515723,
947
+ "recall": 0.8041958041958042,
948
+ "f1-score": 0.7615894039735099,
949
+ "support": 286.0
950
+ },
951
+ "accuracy": 0.8785834738617201,
952
+ "macro avg": {
953
+ "precision": 0.8293771556096571,
954
+ "recall": 0.8532090132090132,
955
+ "f1-score": 0.8400707200863025,
956
+ "support": 1186.0
957
+ },
958
+ "weighted avg": {
959
+ "precision": 0.8843092999855965,
960
+ "recall": 0.8785834738617201,
961
+ "f1-score": 0.8807010135882035,
962
+ "support": 1186.0
963
+ }
964
+ },
965
+ "roc_auc": 0.9304778554778556,
966
+ "average_precision": 0.8288086112166348
967
+ },
968
+ "test_default_0_5": {
969
+ "threshold": 0.5,
970
+ "accuracy": 0.8789279112754159,
971
+ "precision": 0.7452830188679245,
972
+ "recall": 0.6723404255319149,
973
+ "f1": 0.7069351230425056,
974
+ "confusion_matrix": [
975
+ [
976
+ 793,
977
+ 54
978
+ ],
979
+ [
980
+ 77,
981
+ 158
982
+ ]
983
+ ],
984
+ "classification_report": {
985
+ "NOT_RELEVANT": {
986
+ "precision": 0.9114942528735632,
987
+ "recall": 0.9362455726092089,
988
+ "f1-score": 0.9237041351193943,
989
+ "support": 847.0
990
+ },
991
+ "RELEVANT": {
992
+ "precision": 0.7452830188679245,
993
+ "recall": 0.6723404255319149,
994
+ "f1-score": 0.7069351230425056,
995
+ "support": 235.0
996
+ },
997
+ "accuracy": 0.8789279112754159,
998
+ "macro avg": {
999
+ "precision": 0.8283886358707439,
1000
+ "recall": 0.8042929990705618,
1001
+ "f1-score": 0.8153196290809499,
1002
+ "support": 1082.0
1003
+ },
1004
+ "weighted avg": {
1005
+ "precision": 0.8753947704416547,
1006
+ "recall": 0.8789279112754159,
1007
+ "f1-score": 0.8766239892431754,
1008
+ "support": 1082.0
1009
+ }
1010
+ },
1011
+ "roc_auc": 0.921279107739456,
1012
+ "average_precision": 0.7926497521373393
1013
+ },
1014
+ "test_optimal_threshold": {
1015
+ "threshold": 0.3184377968933787,
1016
+ "accuracy": 0.8724584103512015,
1017
+ "precision": 0.688715953307393,
1018
+ "recall": 0.7531914893617021,
1019
+ "f1": 0.7195121951219512,
1020
+ "confusion_matrix": [
1021
+ [
1022
+ 767,
1023
+ 80
1024
+ ],
1025
+ [
1026
+ 58,
1027
+ 177
1028
+ ]
1029
+ ],
1030
+ "classification_report": {
1031
+ "NOT_RELEVANT": {
1032
+ "precision": 0.9296969696969697,
1033
+ "recall": 0.9055489964580874,
1034
+ "f1-score": 0.9174641148325359,
1035
+ "support": 847.0
1036
+ },
1037
+ "RELEVANT": {
1038
+ "precision": 0.688715953307393,
1039
+ "recall": 0.7531914893617021,
1040
+ "f1-score": 0.7195121951219512,
1041
+ "support": 235.0
1042
+ },
1043
+ "accuracy": 0.8724584103512015,
1044
+ "macro avg": {
1045
+ "precision": 0.8092064615021813,
1046
+ "recall": 0.8293702429098948,
1047
+ "f1-score": 0.8184881549772436,
1048
+ "support": 1082.0
1049
+ },
1050
+ "weighted avg": {
1051
+ "precision": 0.8773582092057031,
1052
+ "recall": 0.8724584103512015,
1053
+ "f1-score": 0.8744708605515864,
1054
+ "support": 1082.0
1055
+ }
1056
+ },
1057
+ "roc_auc": 0.921279107739456,
1058
+ "average_precision": 0.7926497521373393
1059
+ }
1060
+ },
1061
+ {
1062
+ "model_type": "transformer",
1063
+ "model_name": "FacebookAI/xlm-roberta-base",
1064
+ "artifact_dir": "/content/agri-vegetable_oils-classifier/transformer",
1065
+ "validation_best_threshold": {
1066
+ "threshold": 0.6245368719100952,
1067
+ "f1": 0.81195079086116,
1068
+ "precision": 0.8162544169611308,
1069
+ "recall": 0.8076923076923077
1070
+ },
1071
+ "validation_default_0_5": {
1072
+ "threshold": 0.5,
1073
+ "accuracy": 0.8962900505902193,
1074
+ "precision": 0.7620578778135049,
1075
+ "recall": 0.8286713286713286,
1076
+ "f1": 0.7939698492462312,
1077
+ "confusion_matrix": [
1078
+ [
1079
+ 826,
1080
+ 74
1081
+ ],
1082
+ [
1083
+ 49,
1084
+ 237
1085
+ ]
1086
+ ],
1087
+ "classification_report": {
1088
+ "NOT_RELEVANT": {
1089
+ "precision": 0.944,
1090
+ "recall": 0.9177777777777778,
1091
+ "f1-score": 0.9307042253521127,
1092
+ "support": 900.0
1093
+ },
1094
+ "RELEVANT": {
1095
+ "precision": 0.7620578778135049,
1096
+ "recall": 0.8286713286713286,
1097
+ "f1-score": 0.7939698492462312,
1098
+ "support": 286.0
1099
+ },
1100
+ "accuracy": 0.8962900505902193,
1101
+ "macro avg": {
1102
+ "precision": 0.8530289389067525,
1103
+ "recall": 0.8732245532245533,
1104
+ "f1-score": 0.8623370372991719,
1105
+ "support": 1186.0
1106
+ },
1107
+ "weighted avg": {
1108
+ "precision": 0.9001252555266968,
1109
+ "recall": 0.8962900505902193,
1110
+ "f1-score": 0.8977311801866135,
1111
+ "support": 1186.0
1112
+ }
1113
+ },
1114
+ "roc_auc": 0.9402564102564102,
1115
+ "average_precision": 0.8724329600938515
1116
+ },
1117
+ "validation_optimal_threshold": {
1118
+ "threshold": 0.6245368719100952,
1119
+ "accuracy": 0.9097807757166948,
1120
+ "precision": 0.8162544169611308,
1121
+ "recall": 0.8076923076923077,
1122
+ "f1": 0.81195079086116,
1123
+ "confusion_matrix": [
1124
+ [
1125
+ 848,
1126
+ 52
1127
+ ],
1128
+ [
1129
+ 55,
1130
+ 231
1131
+ ]
1132
+ ],
1133
+ "classification_report": {
1134
+ "NOT_RELEVANT": {
1135
+ "precision": 0.9390919158361019,
1136
+ "recall": 0.9422222222222222,
1137
+ "f1-score": 0.9406544647809207,
1138
+ "support": 900.0
1139
+ },
1140
+ "RELEVANT": {
1141
+ "precision": 0.8162544169611308,
1142
+ "recall": 0.8076923076923077,
1143
+ "f1-score": 0.81195079086116,
1144
+ "support": 286.0
1145
+ },
1146
+ "accuracy": 0.9097807757166948,
1147
+ "macro avg": {
1148
+ "precision": 0.8776731663986164,
1149
+ "recall": 0.874957264957265,
1150
+ "f1-score": 0.8763026278210404,
1151
+ "support": 1186.0
1152
+ },
1153
+ "weighted avg": {
1154
+ "precision": 0.9094700569168422,
1155
+ "recall": 0.9097807757166948,
1156
+ "f1-score": 0.9096179970397306,
1157
+ "support": 1186.0
1158
+ }
1159
+ },
1160
+ "roc_auc": 0.9402564102564102,
1161
+ "average_precision": 0.8724329600938515
1162
+ },
1163
+ "test_default_0_5": {
1164
+ "threshold": 0.5,
1165
+ "accuracy": 0.8909426987060998,
1166
+ "precision": 0.7407407407407407,
1167
+ "recall": 0.7659574468085106,
1168
+ "f1": 0.7531380753138075,
1169
+ "confusion_matrix": [
1170
+ [
1171
+ 784,
1172
+ 63
1173
+ ],
1174
+ [
1175
+ 55,
1176
+ 180
1177
+ ]
1178
+ ],
1179
+ "classification_report": {
1180
+ "NOT_RELEVANT": {
1181
+ "precision": 0.9344457687723481,
1182
+ "recall": 0.9256198347107438,
1183
+ "f1-score": 0.930011862396204,
1184
+ "support": 847.0
1185
+ },
1186
+ "RELEVANT": {
1187
+ "precision": 0.7407407407407407,
1188
+ "recall": 0.7659574468085106,
1189
+ "f1-score": 0.7531380753138075,
1190
+ "support": 235.0
1191
+ },
1192
+ "accuracy": 0.8909426987060998,
1193
+ "macro avg": {
1194
+ "precision": 0.8375932547565443,
1195
+ "recall": 0.8457886407596272,
1196
+ "f1-score": 0.8415749688550058,
1197
+ "support": 1082.0
1198
+ },
1199
+ "weighted avg": {
1200
+ "precision": 0.8923748985436718,
1201
+ "recall": 0.8909426987060998,
1202
+ "f1-score": 0.8915965759226706,
1203
+ "support": 1082.0
1204
+ }
1205
+ },
1206
+ "roc_auc": 0.9304202567258661,
1207
+ "average_precision": 0.8201223203360092
1208
+ },
1209
+ "test_optimal_threshold": {
1210
+ "threshold": 0.6245368719100952,
1211
+ "accuracy": 0.8937153419593346,
1212
+ "precision": 0.7586206896551724,
1213
+ "recall": 0.7489361702127659,
1214
+ "f1": 0.7537473233404711,
1215
+ "confusion_matrix": [
1216
+ [
1217
+ 791,
1218
+ 56
1219
+ ],
1220
+ [
1221
+ 59,
1222
+ 176
1223
+ ]
1224
+ ],
1225
+ "classification_report": {
1226
+ "NOT_RELEVANT": {
1227
+ "precision": 0.9305882352941176,
1228
+ "recall": 0.9338842975206612,
1229
+ "f1-score": 0.9322333529758398,
1230
+ "support": 847.0
1231
+ },
1232
+ "RELEVANT": {
1233
+ "precision": 0.7586206896551724,
1234
+ "recall": 0.7489361702127659,
1235
+ "f1-score": 0.7537473233404711,
1236
+ "support": 235.0
1237
+ },
1238
+ "accuracy": 0.8937153419593346,
1239
+ "macro avg": {
1240
+ "precision": 0.8446044624746449,
1241
+ "recall": 0.8414102338667135,
1242
+ "f1-score": 0.8429903381581554,
1243
+ "support": 1082.0
1244
+ },
1245
+ "weighted avg": {
1246
+ "precision": 0.8932385373041433,
1247
+ "recall": 0.8937153419593346,
1248
+ "f1-score": 0.8934679029164021,
1249
+ "support": 1082.0
1250
+ }
1251
+ },
1252
+ "roc_auc": 0.9304202567258661,
1253
+ "average_precision": 0.8201223203360092
1254
+ }
1255
+ }
1256
+ ]
1257
+ }
transformer/checkpoint-1011/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "NOT_RELEVANT",
16
+ "1": "RELEVANT"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "is_decoder": false,
21
+ "label2id": {
22
+ "NOT_RELEVANT": 0,
23
+ "RELEVANT": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "xlm-roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "output_past": true,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.10.2",
36
+ "type_vocab_size": 1,
37
+ "use_cache": false,
38
+ "vocab_size": 250002
39
+ }
transformer/checkpoint-1011/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac4fc8880d6361bacadc815eff59fd7cb7dd759fa9eee1493036c1080a43e6db
3
+ size 1112205008
transformer/checkpoint-1011/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8734e90e2105c0a9eeda05096e1b1f1ad0574e7b5b4eaca82bf3379e7ff776d8
3
+ size 2224532875
transformer/checkpoint-1011/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4092d624201af4a8144b7a00adad25e71b579861dddb46d25d31cdb4813a29dc
3
+ size 14645
transformer/checkpoint-1011/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:618c9936dcd7260743da593c158c0285bab7ddbee673655b5e521eb69f6cb8a1
3
+ size 1383
transformer/checkpoint-1011/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6601c59e5db52f183e4ee96f3087c37576763c0f8845b3cf9d34e98636638485
3
+ size 1465
transformer/checkpoint-1011/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc02d42fb2a10276563109e2287cc0dbe6b595d5b3b3401c7cfeffc0b7e20270
3
+ size 17098351
transformer/checkpoint-1011/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "mask_token": "<mask>",
10
+ "model_max_length": 512,
11
+ "pad_token": "<pad>",
12
+ "sep_token": "</s>",
13
+ "tokenizer_class": "XLMRobertaTokenizer",
14
+ "unk_token": "<unk>"
15
+ }
transformer/checkpoint-1011/trainer_state.json ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 1011,
3
+ "best_metric": 0.7939698492462312,
4
+ "best_model_checkpoint": "/content/agri-vegetable_oils-classifier/transformer/checkpoint-1011",
5
+ "epoch": 3.0,
6
+ "eval_steps": 500,
7
+ "global_step": 1011,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.07418397626112759,
14
+ "grad_norm": 7.607387542724609,
15
+ "learning_rate": 2.8571428571428573e-06,
16
+ "loss": 0.776995849609375,
17
+ "step": 25
18
+ },
19
+ {
20
+ "epoch": 0.14836795252225518,
21
+ "grad_norm": 7.806713581085205,
22
+ "learning_rate": 5.833333333333334e-06,
23
+ "loss": 0.6094583129882812,
24
+ "step": 50
25
+ },
26
+ {
27
+ "epoch": 0.22255192878338279,
28
+ "grad_norm": 13.206457138061523,
29
+ "learning_rate": 8.80952380952381e-06,
30
+ "loss": 0.5822508239746094,
31
+ "step": 75
32
+ },
33
+ {
34
+ "epoch": 0.29673590504451036,
35
+ "grad_norm": 5.247451305389404,
36
+ "learning_rate": 1.1785714285714287e-05,
37
+ "loss": 0.5223202514648437,
38
+ "step": 100
39
+ },
40
+ {
41
+ "epoch": 0.37091988130563797,
42
+ "grad_norm": 5.2997918128967285,
43
+ "learning_rate": 1.4761904761904763e-05,
44
+ "loss": 0.4415196228027344,
45
+ "step": 125
46
+ },
47
+ {
48
+ "epoch": 0.44510385756676557,
49
+ "grad_norm": 7.833019733428955,
50
+ "learning_rate": 1.7738095238095237e-05,
51
+ "loss": 0.36593223571777345,
52
+ "step": 150
53
+ },
54
+ {
55
+ "epoch": 0.5192878338278932,
56
+ "grad_norm": 16.1845645904541,
57
+ "learning_rate": 1.992089650626236e-05,
58
+ "loss": 0.37993320465087893,
59
+ "step": 175
60
+ },
61
+ {
62
+ "epoch": 0.5934718100890207,
63
+ "grad_norm": 3.0503382682800293,
64
+ "learning_rate": 1.959129861568886e-05,
65
+ "loss": 0.36956878662109377,
66
+ "step": 200
67
+ },
68
+ {
69
+ "epoch": 0.6676557863501483,
70
+ "grad_norm": 5.835538387298584,
71
+ "learning_rate": 1.926170072511536e-05,
72
+ "loss": 0.4063117218017578,
73
+ "step": 225
74
+ },
75
+ {
76
+ "epoch": 0.7418397626112759,
77
+ "grad_norm": 18.82291030883789,
78
+ "learning_rate": 1.893210283454186e-05,
79
+ "loss": 0.2881482696533203,
80
+ "step": 250
81
+ },
82
+ {
83
+ "epoch": 0.8160237388724035,
84
+ "grad_norm": 6.1299285888671875,
85
+ "learning_rate": 1.860250494396836e-05,
86
+ "loss": 0.374752311706543,
87
+ "step": 275
88
+ },
89
+ {
90
+ "epoch": 0.8902077151335311,
91
+ "grad_norm": 4.416833400726318,
92
+ "learning_rate": 1.8272907053394858e-05,
93
+ "loss": 0.29481241226196286,
94
+ "step": 300
95
+ },
96
+ {
97
+ "epoch": 0.9643916913946587,
98
+ "grad_norm": 4.16887903213501,
99
+ "learning_rate": 1.794330916282136e-05,
100
+ "loss": 0.3296230316162109,
101
+ "step": 325
102
+ },
103
+ {
104
+ "epoch": 1.0,
105
+ "eval_accuracy": 0.8946037099494097,
106
+ "eval_f1": 0.7464503042596349,
107
+ "eval_loss": 0.28156211972236633,
108
+ "eval_precision": 0.8888888888888888,
109
+ "eval_recall": 0.6433566433566433,
110
+ "eval_roc_auc": 0.9320687645687645,
111
+ "eval_runtime": 4.1098,
112
+ "eval_samples_per_second": 288.579,
113
+ "eval_steps_per_second": 9.246,
114
+ "step": 337
115
+ },
116
+ {
117
+ "epoch": 1.0385756676557865,
118
+ "grad_norm": 5.179116249084473,
119
+ "learning_rate": 1.761371127224786e-05,
120
+ "loss": 0.33882320404052735,
121
+ "step": 350
122
+ },
123
+ {
124
+ "epoch": 1.1127596439169138,
125
+ "grad_norm": 10.036450386047363,
126
+ "learning_rate": 1.728411338167436e-05,
127
+ "loss": 0.3026165008544922,
128
+ "step": 375
129
+ },
130
+ {
131
+ "epoch": 1.1869436201780414,
132
+ "grad_norm": 19.071561813354492,
133
+ "learning_rate": 1.695451549110086e-05,
134
+ "loss": 0.31119293212890625,
135
+ "step": 400
136
+ },
137
+ {
138
+ "epoch": 1.2611275964391693,
139
+ "grad_norm": 5.930752277374268,
140
+ "learning_rate": 1.6624917600527356e-05,
141
+ "loss": 0.32217376708984374,
142
+ "step": 425
143
+ },
144
+ {
145
+ "epoch": 1.3353115727002967,
146
+ "grad_norm": 3.7290303707122803,
147
+ "learning_rate": 1.629531970995386e-05,
148
+ "loss": 0.23157772064208984,
149
+ "step": 450
150
+ },
151
+ {
152
+ "epoch": 1.4094955489614243,
153
+ "grad_norm": 4.3909807205200195,
154
+ "learning_rate": 1.5965721819380357e-05,
155
+ "loss": 0.3308553695678711,
156
+ "step": 475
157
+ },
158
+ {
159
+ "epoch": 1.4836795252225519,
160
+ "grad_norm": 10.672834396362305,
161
+ "learning_rate": 1.5636123928806857e-05,
162
+ "loss": 0.29594322204589846,
163
+ "step": 500
164
+ },
165
+ {
166
+ "epoch": 1.5578635014836797,
167
+ "grad_norm": 3.9584341049194336,
168
+ "learning_rate": 1.5306526038233357e-05,
169
+ "loss": 0.2718320846557617,
170
+ "step": 525
171
+ },
172
+ {
173
+ "epoch": 1.632047477744807,
174
+ "grad_norm": 5.513729095458984,
175
+ "learning_rate": 1.4976928147659858e-05,
176
+ "loss": 0.3004481887817383,
177
+ "step": 550
178
+ },
179
+ {
180
+ "epoch": 1.7062314540059347,
181
+ "grad_norm": 7.17445182800293,
182
+ "learning_rate": 1.4647330257086356e-05,
183
+ "loss": 0.2818168640136719,
184
+ "step": 575
185
+ },
186
+ {
187
+ "epoch": 1.7804154302670623,
188
+ "grad_norm": 5.887065410614014,
189
+ "learning_rate": 1.4317732366512855e-05,
190
+ "loss": 0.24372146606445313,
191
+ "step": 600
192
+ },
193
+ {
194
+ "epoch": 1.8545994065281899,
195
+ "grad_norm": 7.244300365447998,
196
+ "learning_rate": 1.3988134475939355e-05,
197
+ "loss": 0.26590900421142577,
198
+ "step": 625
199
+ },
200
+ {
201
+ "epoch": 1.9287833827893175,
202
+ "grad_norm": 2.8263907432556152,
203
+ "learning_rate": 1.3658536585365855e-05,
204
+ "loss": 0.2646135139465332,
205
+ "step": 650
206
+ },
207
+ {
208
+ "epoch": 2.0,
209
+ "eval_accuracy": 0.8819561551433389,
210
+ "eval_f1": 0.7552447552447552,
211
+ "eval_loss": 0.28535765409469604,
212
+ "eval_precision": 0.7552447552447552,
213
+ "eval_recall": 0.7552447552447552,
214
+ "eval_roc_auc": 0.9397999222999223,
215
+ "eval_runtime": 4.0785,
216
+ "eval_samples_per_second": 290.792,
217
+ "eval_steps_per_second": 9.317,
218
+ "step": 674
219
+ },
220
+ {
221
+ "epoch": 2.0029673590504453,
222
+ "grad_norm": 7.551307678222656,
223
+ "learning_rate": 1.3328938694792356e-05,
224
+ "loss": 0.27457916259765625,
225
+ "step": 675
226
+ },
227
+ {
228
+ "epoch": 2.077151335311573,
229
+ "grad_norm": 4.620733737945557,
230
+ "learning_rate": 1.2999340804218854e-05,
231
+ "loss": 0.20403297424316405,
232
+ "step": 700
233
+ },
234
+ {
235
+ "epoch": 2.1513353115727005,
236
+ "grad_norm": 7.455748558044434,
237
+ "learning_rate": 1.2669742913645353e-05,
238
+ "loss": 0.22817506790161132,
239
+ "step": 725
240
+ },
241
+ {
242
+ "epoch": 2.2255192878338277,
243
+ "grad_norm": 4.345335483551025,
244
+ "learning_rate": 1.2340145023071851e-05,
245
+ "loss": 0.23041894912719726,
246
+ "step": 750
247
+ },
248
+ {
249
+ "epoch": 2.2997032640949557,
250
+ "grad_norm": 2.759720802307129,
251
+ "learning_rate": 1.2010547132498353e-05,
252
+ "loss": 0.2598771286010742,
253
+ "step": 775
254
+ },
255
+ {
256
+ "epoch": 2.373887240356083,
257
+ "grad_norm": 12.658757209777832,
258
+ "learning_rate": 1.1680949241924852e-05,
259
+ "loss": 0.1732135009765625,
260
+ "step": 800
261
+ },
262
+ {
263
+ "epoch": 2.4480712166172105,
264
+ "grad_norm": 21.78675651550293,
265
+ "learning_rate": 1.1351351351351352e-05,
266
+ "loss": 0.27717506408691406,
267
+ "step": 825
268
+ },
269
+ {
270
+ "epoch": 2.5222551928783385,
271
+ "grad_norm": 11.829066276550293,
272
+ "learning_rate": 1.1021753460777851e-05,
273
+ "loss": 0.233128604888916,
274
+ "step": 850
275
+ },
276
+ {
277
+ "epoch": 2.596439169139466,
278
+ "grad_norm": 10.126202583312988,
279
+ "learning_rate": 1.0692155570204353e-05,
280
+ "loss": 0.2260282325744629,
281
+ "step": 875
282
+ },
283
+ {
284
+ "epoch": 2.6706231454005933,
285
+ "grad_norm": 8.723063468933105,
286
+ "learning_rate": 1.0362557679630852e-05,
287
+ "loss": 0.17913871765136719,
288
+ "step": 900
289
+ },
290
+ {
291
+ "epoch": 2.744807121661721,
292
+ "grad_norm": 2.2658655643463135,
293
+ "learning_rate": 1.003295978905735e-05,
294
+ "loss": 0.22353851318359375,
295
+ "step": 925
296
+ },
297
+ {
298
+ "epoch": 2.8189910979228485,
299
+ "grad_norm": 6.125418663024902,
300
+ "learning_rate": 9.70336189848385e-06,
301
+ "loss": 0.22848413467407228,
302
+ "step": 950
303
+ },
304
+ {
305
+ "epoch": 2.893175074183976,
306
+ "grad_norm": 8.733881950378418,
307
+ "learning_rate": 9.373764007910349e-06,
308
+ "loss": 0.22179716110229492,
309
+ "step": 975
310
+ },
311
+ {
312
+ "epoch": 2.9673590504451037,
313
+ "grad_norm": 6.053173542022705,
314
+ "learning_rate": 9.04416611733685e-06,
315
+ "loss": 0.23357131958007812,
316
+ "step": 1000
317
+ },
318
+ {
319
+ "epoch": 3.0,
320
+ "eval_accuracy": 0.8962900505902193,
321
+ "eval_f1": 0.7939698492462312,
322
+ "eval_loss": 0.3055192828178406,
323
+ "eval_precision": 0.7620578778135049,
324
+ "eval_recall": 0.8286713286713286,
325
+ "eval_roc_auc": 0.9402564102564102,
326
+ "eval_runtime": 4.3002,
327
+ "eval_samples_per_second": 275.803,
328
+ "eval_steps_per_second": 8.837,
329
+ "step": 1011
330
+ }
331
+ ],
332
+ "logging_steps": 25,
333
+ "max_steps": 1685,
334
+ "num_input_tokens_seen": 0,
335
+ "num_train_epochs": 5,
336
+ "save_steps": 500,
337
+ "stateful_callbacks": {
338
+ "EarlyStoppingCallback": {
339
+ "args": {
340
+ "early_stopping_patience": 2,
341
+ "early_stopping_threshold": 0.0
342
+ },
343
+ "attributes": {
344
+ "early_stopping_patience_counter": 0
345
+ }
346
+ },
347
+ "TrainerControl": {
348
+ "args": {
349
+ "should_epoch_stop": false,
350
+ "should_evaluate": false,
351
+ "should_log": false,
352
+ "should_save": true,
353
+ "should_training_stop": false
354
+ },
355
+ "attributes": {}
356
+ }
357
+ },
358
+ "total_flos": 2124095549921280.0,
359
+ "train_batch_size": 16,
360
+ "trial_name": null,
361
+ "trial_params": null
362
+ }
transformer/checkpoint-1011/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd2294ff2f963cda1289e542973e812736151f37ebfb13aa91871d4ef000d8f6
3
+ size 5201
transformer/checkpoint-1348/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "NOT_RELEVANT",
16
+ "1": "RELEVANT"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "is_decoder": false,
21
+ "label2id": {
22
+ "NOT_RELEVANT": 0,
23
+ "RELEVANT": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "xlm-roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "output_past": true,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.10.2",
36
+ "type_vocab_size": 1,
37
+ "use_cache": false,
38
+ "vocab_size": 250002
39
+ }
transformer/checkpoint-1348/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e93b4be9c3697319709b89a56d2f8ae9b6eac0db964eb4d77f65afc015c41659
3
+ size 1112205008
transformer/checkpoint-1348/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f7e6de1b955978c6b118877f82073083db766cf1e79021e9a2d412a99aa0a7a
3
+ size 2224532875
transformer/checkpoint-1348/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b77fd3a4c7c95e2caeacdefeef9306d00ea6f084133801c998dc4382485ab05b
3
+ size 14645
transformer/checkpoint-1348/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ebf73ade6a8fc04bde35c114b29623c4a7cf65c155c9fe8b0fa6aab73801fd5
3
+ size 1383
transformer/checkpoint-1348/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6ecac92cb57fa3ff61c0a9ce98dd77386090cdcddb24d2ab47775677c96b8db
3
+ size 1465
transformer/checkpoint-1348/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc02d42fb2a10276563109e2287cc0dbe6b595d5b3b3401c7cfeffc0b7e20270
3
+ size 17098351
transformer/checkpoint-1348/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "mask_token": "<mask>",
10
+ "model_max_length": 512,
11
+ "pad_token": "<pad>",
12
+ "sep_token": "</s>",
13
+ "tokenizer_class": "XLMRobertaTokenizer",
14
+ "unk_token": "<unk>"
15
+ }
transformer/checkpoint-1348/trainer_state.json ADDED
@@ -0,0 +1,466 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 1011,
3
+ "best_metric": 0.7939698492462312,
4
+ "best_model_checkpoint": "/content/agri-vegetable_oils-classifier/transformer/checkpoint-1011",
5
+ "epoch": 4.0,
6
+ "eval_steps": 500,
7
+ "global_step": 1348,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.07418397626112759,
14
+ "grad_norm": 7.607387542724609,
15
+ "learning_rate": 2.8571428571428573e-06,
16
+ "loss": 0.776995849609375,
17
+ "step": 25
18
+ },
19
+ {
20
+ "epoch": 0.14836795252225518,
21
+ "grad_norm": 7.806713581085205,
22
+ "learning_rate": 5.833333333333334e-06,
23
+ "loss": 0.6094583129882812,
24
+ "step": 50
25
+ },
26
+ {
27
+ "epoch": 0.22255192878338279,
28
+ "grad_norm": 13.206457138061523,
29
+ "learning_rate": 8.80952380952381e-06,
30
+ "loss": 0.5822508239746094,
31
+ "step": 75
32
+ },
33
+ {
34
+ "epoch": 0.29673590504451036,
35
+ "grad_norm": 5.247451305389404,
36
+ "learning_rate": 1.1785714285714287e-05,
37
+ "loss": 0.5223202514648437,
38
+ "step": 100
39
+ },
40
+ {
41
+ "epoch": 0.37091988130563797,
42
+ "grad_norm": 5.2997918128967285,
43
+ "learning_rate": 1.4761904761904763e-05,
44
+ "loss": 0.4415196228027344,
45
+ "step": 125
46
+ },
47
+ {
48
+ "epoch": 0.44510385756676557,
49
+ "grad_norm": 7.833019733428955,
50
+ "learning_rate": 1.7738095238095237e-05,
51
+ "loss": 0.36593223571777345,
52
+ "step": 150
53
+ },
54
+ {
55
+ "epoch": 0.5192878338278932,
56
+ "grad_norm": 16.1845645904541,
57
+ "learning_rate": 1.992089650626236e-05,
58
+ "loss": 0.37993320465087893,
59
+ "step": 175
60
+ },
61
+ {
62
+ "epoch": 0.5934718100890207,
63
+ "grad_norm": 3.0503382682800293,
64
+ "learning_rate": 1.959129861568886e-05,
65
+ "loss": 0.36956878662109377,
66
+ "step": 200
67
+ },
68
+ {
69
+ "epoch": 0.6676557863501483,
70
+ "grad_norm": 5.835538387298584,
71
+ "learning_rate": 1.926170072511536e-05,
72
+ "loss": 0.4063117218017578,
73
+ "step": 225
74
+ },
75
+ {
76
+ "epoch": 0.7418397626112759,
77
+ "grad_norm": 18.82291030883789,
78
+ "learning_rate": 1.893210283454186e-05,
79
+ "loss": 0.2881482696533203,
80
+ "step": 250
81
+ },
82
+ {
83
+ "epoch": 0.8160237388724035,
84
+ "grad_norm": 6.1299285888671875,
85
+ "learning_rate": 1.860250494396836e-05,
86
+ "loss": 0.374752311706543,
87
+ "step": 275
88
+ },
89
+ {
90
+ "epoch": 0.8902077151335311,
91
+ "grad_norm": 4.416833400726318,
92
+ "learning_rate": 1.8272907053394858e-05,
93
+ "loss": 0.29481241226196286,
94
+ "step": 300
95
+ },
96
+ {
97
+ "epoch": 0.9643916913946587,
98
+ "grad_norm": 4.16887903213501,
99
+ "learning_rate": 1.794330916282136e-05,
100
+ "loss": 0.3296230316162109,
101
+ "step": 325
102
+ },
103
+ {
104
+ "epoch": 1.0,
105
+ "eval_accuracy": 0.8946037099494097,
106
+ "eval_f1": 0.7464503042596349,
107
+ "eval_loss": 0.28156211972236633,
108
+ "eval_precision": 0.8888888888888888,
109
+ "eval_recall": 0.6433566433566433,
110
+ "eval_roc_auc": 0.9320687645687645,
111
+ "eval_runtime": 4.1098,
112
+ "eval_samples_per_second": 288.579,
113
+ "eval_steps_per_second": 9.246,
114
+ "step": 337
115
+ },
116
+ {
117
+ "epoch": 1.0385756676557865,
118
+ "grad_norm": 5.179116249084473,
119
+ "learning_rate": 1.761371127224786e-05,
120
+ "loss": 0.33882320404052735,
121
+ "step": 350
122
+ },
123
+ {
124
+ "epoch": 1.1127596439169138,
125
+ "grad_norm": 10.036450386047363,
126
+ "learning_rate": 1.728411338167436e-05,
127
+ "loss": 0.3026165008544922,
128
+ "step": 375
129
+ },
130
+ {
131
+ "epoch": 1.1869436201780414,
132
+ "grad_norm": 19.071561813354492,
133
+ "learning_rate": 1.695451549110086e-05,
134
+ "loss": 0.31119293212890625,
135
+ "step": 400
136
+ },
137
+ {
138
+ "epoch": 1.2611275964391693,
139
+ "grad_norm": 5.930752277374268,
140
+ "learning_rate": 1.6624917600527356e-05,
141
+ "loss": 0.32217376708984374,
142
+ "step": 425
143
+ },
144
+ {
145
+ "epoch": 1.3353115727002967,
146
+ "grad_norm": 3.7290303707122803,
147
+ "learning_rate": 1.629531970995386e-05,
148
+ "loss": 0.23157772064208984,
149
+ "step": 450
150
+ },
151
+ {
152
+ "epoch": 1.4094955489614243,
153
+ "grad_norm": 4.3909807205200195,
154
+ "learning_rate": 1.5965721819380357e-05,
155
+ "loss": 0.3308553695678711,
156
+ "step": 475
157
+ },
158
+ {
159
+ "epoch": 1.4836795252225519,
160
+ "grad_norm": 10.672834396362305,
161
+ "learning_rate": 1.5636123928806857e-05,
162
+ "loss": 0.29594322204589846,
163
+ "step": 500
164
+ },
165
+ {
166
+ "epoch": 1.5578635014836797,
167
+ "grad_norm": 3.9584341049194336,
168
+ "learning_rate": 1.5306526038233357e-05,
169
+ "loss": 0.2718320846557617,
170
+ "step": 525
171
+ },
172
+ {
173
+ "epoch": 1.632047477744807,
174
+ "grad_norm": 5.513729095458984,
175
+ "learning_rate": 1.4976928147659858e-05,
176
+ "loss": 0.3004481887817383,
177
+ "step": 550
178
+ },
179
+ {
180
+ "epoch": 1.7062314540059347,
181
+ "grad_norm": 7.17445182800293,
182
+ "learning_rate": 1.4647330257086356e-05,
183
+ "loss": 0.2818168640136719,
184
+ "step": 575
185
+ },
186
+ {
187
+ "epoch": 1.7804154302670623,
188
+ "grad_norm": 5.887065410614014,
189
+ "learning_rate": 1.4317732366512855e-05,
190
+ "loss": 0.24372146606445313,
191
+ "step": 600
192
+ },
193
+ {
194
+ "epoch": 1.8545994065281899,
195
+ "grad_norm": 7.244300365447998,
196
+ "learning_rate": 1.3988134475939355e-05,
197
+ "loss": 0.26590900421142577,
198
+ "step": 625
199
+ },
200
+ {
201
+ "epoch": 1.9287833827893175,
202
+ "grad_norm": 2.8263907432556152,
203
+ "learning_rate": 1.3658536585365855e-05,
204
+ "loss": 0.2646135139465332,
205
+ "step": 650
206
+ },
207
+ {
208
+ "epoch": 2.0,
209
+ "eval_accuracy": 0.8819561551433389,
210
+ "eval_f1": 0.7552447552447552,
211
+ "eval_loss": 0.28535765409469604,
212
+ "eval_precision": 0.7552447552447552,
213
+ "eval_recall": 0.7552447552447552,
214
+ "eval_roc_auc": 0.9397999222999223,
215
+ "eval_runtime": 4.0785,
216
+ "eval_samples_per_second": 290.792,
217
+ "eval_steps_per_second": 9.317,
218
+ "step": 674
219
+ },
220
+ {
221
+ "epoch": 2.0029673590504453,
222
+ "grad_norm": 7.551307678222656,
223
+ "learning_rate": 1.3328938694792356e-05,
224
+ "loss": 0.27457916259765625,
225
+ "step": 675
226
+ },
227
+ {
228
+ "epoch": 2.077151335311573,
229
+ "grad_norm": 4.620733737945557,
230
+ "learning_rate": 1.2999340804218854e-05,
231
+ "loss": 0.20403297424316405,
232
+ "step": 700
233
+ },
234
+ {
235
+ "epoch": 2.1513353115727005,
236
+ "grad_norm": 7.455748558044434,
237
+ "learning_rate": 1.2669742913645353e-05,
238
+ "loss": 0.22817506790161132,
239
+ "step": 725
240
+ },
241
+ {
242
+ "epoch": 2.2255192878338277,
243
+ "grad_norm": 4.345335483551025,
244
+ "learning_rate": 1.2340145023071851e-05,
245
+ "loss": 0.23041894912719726,
246
+ "step": 750
247
+ },
248
+ {
249
+ "epoch": 2.2997032640949557,
250
+ "grad_norm": 2.759720802307129,
251
+ "learning_rate": 1.2010547132498353e-05,
252
+ "loss": 0.2598771286010742,
253
+ "step": 775
254
+ },
255
+ {
256
+ "epoch": 2.373887240356083,
257
+ "grad_norm": 12.658757209777832,
258
+ "learning_rate": 1.1680949241924852e-05,
259
+ "loss": 0.1732135009765625,
260
+ "step": 800
261
+ },
262
+ {
263
+ "epoch": 2.4480712166172105,
264
+ "grad_norm": 21.78675651550293,
265
+ "learning_rate": 1.1351351351351352e-05,
266
+ "loss": 0.27717506408691406,
267
+ "step": 825
268
+ },
269
+ {
270
+ "epoch": 2.5222551928783385,
271
+ "grad_norm": 11.829066276550293,
272
+ "learning_rate": 1.1021753460777851e-05,
273
+ "loss": 0.233128604888916,
274
+ "step": 850
275
+ },
276
+ {
277
+ "epoch": 2.596439169139466,
278
+ "grad_norm": 10.126202583312988,
279
+ "learning_rate": 1.0692155570204353e-05,
280
+ "loss": 0.2260282325744629,
281
+ "step": 875
282
+ },
283
+ {
284
+ "epoch": 2.6706231454005933,
285
+ "grad_norm": 8.723063468933105,
286
+ "learning_rate": 1.0362557679630852e-05,
287
+ "loss": 0.17913871765136719,
288
+ "step": 900
289
+ },
290
+ {
291
+ "epoch": 2.744807121661721,
292
+ "grad_norm": 2.2658655643463135,
293
+ "learning_rate": 1.003295978905735e-05,
294
+ "loss": 0.22353851318359375,
295
+ "step": 925
296
+ },
297
+ {
298
+ "epoch": 2.8189910979228485,
299
+ "grad_norm": 6.125418663024902,
300
+ "learning_rate": 9.70336189848385e-06,
301
+ "loss": 0.22848413467407228,
302
+ "step": 950
303
+ },
304
+ {
305
+ "epoch": 2.893175074183976,
306
+ "grad_norm": 8.733881950378418,
307
+ "learning_rate": 9.373764007910349e-06,
308
+ "loss": 0.22179716110229492,
309
+ "step": 975
310
+ },
311
+ {
312
+ "epoch": 2.9673590504451037,
313
+ "grad_norm": 6.053173542022705,
314
+ "learning_rate": 9.04416611733685e-06,
315
+ "loss": 0.23357131958007812,
316
+ "step": 1000
317
+ },
318
+ {
319
+ "epoch": 3.0,
320
+ "eval_accuracy": 0.8962900505902193,
321
+ "eval_f1": 0.7939698492462312,
322
+ "eval_loss": 0.3055192828178406,
323
+ "eval_precision": 0.7620578778135049,
324
+ "eval_recall": 0.8286713286713286,
325
+ "eval_roc_auc": 0.9402564102564102,
326
+ "eval_runtime": 4.3002,
327
+ "eval_samples_per_second": 275.803,
328
+ "eval_steps_per_second": 8.837,
329
+ "step": 1011
330
+ },
331
+ {
332
+ "epoch": 3.0415430267062313,
333
+ "grad_norm": 4.6154608726501465,
334
+ "learning_rate": 8.71456822676335e-06,
335
+ "loss": 0.12241142272949218,
336
+ "step": 1025
337
+ },
338
+ {
339
+ "epoch": 3.115727002967359,
340
+ "grad_norm": 16.85491943359375,
341
+ "learning_rate": 8.38497033618985e-06,
342
+ "loss": 0.18099328994750977,
343
+ "step": 1050
344
+ },
345
+ {
346
+ "epoch": 3.1899109792284865,
347
+ "grad_norm": 5.566222667694092,
348
+ "learning_rate": 8.055372445616348e-06,
349
+ "loss": 0.22674598693847656,
350
+ "step": 1075
351
+ },
352
+ {
353
+ "epoch": 3.264094955489614,
354
+ "grad_norm": 10.604151725769043,
355
+ "learning_rate": 7.725774555042849e-06,
356
+ "loss": 0.20099123001098632,
357
+ "step": 1100
358
+ },
359
+ {
360
+ "epoch": 3.3382789317507418,
361
+ "grad_norm": 3.627216100692749,
362
+ "learning_rate": 7.396176664469347e-06,
363
+ "loss": 0.10423069000244141,
364
+ "step": 1125
365
+ },
366
+ {
367
+ "epoch": 3.4124629080118694,
368
+ "grad_norm": 8.285340309143066,
369
+ "learning_rate": 7.066578773895848e-06,
370
+ "loss": 0.19954639434814453,
371
+ "step": 1150
372
+ },
373
+ {
374
+ "epoch": 3.486646884272997,
375
+ "grad_norm": 5.19682502746582,
376
+ "learning_rate": 6.736980883322347e-06,
377
+ "loss": 0.17898582458496093,
378
+ "step": 1175
379
+ },
380
+ {
381
+ "epoch": 3.5608308605341246,
382
+ "grad_norm": 19.798147201538086,
383
+ "learning_rate": 6.407382992748847e-06,
384
+ "loss": 0.10967336654663086,
385
+ "step": 1200
386
+ },
387
+ {
388
+ "epoch": 3.635014836795252,
389
+ "grad_norm": 10.85386848449707,
390
+ "learning_rate": 6.077785102175347e-06,
391
+ "loss": 0.24327730178833007,
392
+ "step": 1225
393
+ },
394
+ {
395
+ "epoch": 3.7091988130563798,
396
+ "grad_norm": 6.869043350219727,
397
+ "learning_rate": 5.748187211601846e-06,
398
+ "loss": 0.19570405960083007,
399
+ "step": 1250
400
+ },
401
+ {
402
+ "epoch": 3.7833827893175074,
403
+ "grad_norm": 2.955522060394287,
404
+ "learning_rate": 5.418589321028346e-06,
405
+ "loss": 0.14091815948486328,
406
+ "step": 1275
407
+ },
408
+ {
409
+ "epoch": 3.857566765578635,
410
+ "grad_norm": 23.062135696411133,
411
+ "learning_rate": 5.088991430454846e-06,
412
+ "loss": 0.14592092514038085,
413
+ "step": 1300
414
+ },
415
+ {
416
+ "epoch": 3.9317507418397626,
417
+ "grad_norm": 8.349876403808594,
418
+ "learning_rate": 4.7593935398813455e-06,
419
+ "loss": 0.19898681640625,
420
+ "step": 1325
421
+ },
422
+ {
423
+ "epoch": 4.0,
424
+ "eval_accuracy": 0.8895446880269815,
425
+ "eval_f1": 0.7639639639639639,
426
+ "eval_loss": 0.4294162392616272,
427
+ "eval_precision": 0.7881040892193308,
428
+ "eval_recall": 0.7412587412587412,
429
+ "eval_roc_auc": 0.9231895881895882,
430
+ "eval_runtime": 4.0864,
431
+ "eval_samples_per_second": 290.232,
432
+ "eval_steps_per_second": 9.299,
433
+ "step": 1348
434
+ }
435
+ ],
436
+ "logging_steps": 25,
437
+ "max_steps": 1685,
438
+ "num_input_tokens_seen": 0,
439
+ "num_train_epochs": 5,
440
+ "save_steps": 500,
441
+ "stateful_callbacks": {
442
+ "EarlyStoppingCallback": {
443
+ "args": {
444
+ "early_stopping_patience": 2,
445
+ "early_stopping_threshold": 0.0
446
+ },
447
+ "attributes": {
448
+ "early_stopping_patience_counter": 1
449
+ }
450
+ },
451
+ "TrainerControl": {
452
+ "args": {
453
+ "should_epoch_stop": false,
454
+ "should_evaluate": false,
455
+ "should_log": false,
456
+ "should_save": true,
457
+ "should_training_stop": false
458
+ },
459
+ "attributes": {}
460
+ }
461
+ },
462
+ "total_flos": 2832127399895040.0,
463
+ "train_batch_size": 16,
464
+ "trial_name": null,
465
+ "trial_params": null
466
+ }
transformer/checkpoint-1348/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd2294ff2f963cda1289e542973e812736151f37ebfb13aa91871d4ef000d8f6
3
+ size 5201
transformer/checkpoint-1685/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "NOT_RELEVANT",
16
+ "1": "RELEVANT"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "is_decoder": false,
21
+ "label2id": {
22
+ "NOT_RELEVANT": 0,
23
+ "RELEVANT": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "xlm-roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "output_past": true,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.10.2",
36
+ "type_vocab_size": 1,
37
+ "use_cache": false,
38
+ "vocab_size": 250002
39
+ }
transformer/checkpoint-1685/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9207404bc60b88e221b76003772f70146b615a7515871621d6b0a8b8357aa84d
3
+ size 1112205008
transformer/checkpoint-1685/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:828b82ea1f450b0861cbe13984d5fc0e4d949c35205481c68359af469212b370
3
+ size 2224532875
transformer/checkpoint-1685/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23039a297cfebdfe5d0c1165e50ef096a85593f459ea9ffe07b3b87b098b02be
3
+ size 14645
transformer/checkpoint-1685/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc21e64c812303bc990244ed36467d6efc1b18f3a65e39c19a3da78950c3cef2
3
+ size 1383
transformer/checkpoint-1685/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3c70019654390845e57916b024977fe20c00795a721b9bc75b2432e36ee918e
3
+ size 1465
transformer/checkpoint-1685/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc02d42fb2a10276563109e2287cc0dbe6b595d5b3b3401c7cfeffc0b7e20270
3
+ size 17098351
transformer/checkpoint-1685/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "mask_token": "<mask>",
10
+ "model_max_length": 512,
11
+ "pad_token": "<pad>",
12
+ "sep_token": "</s>",
13
+ "tokenizer_class": "XLMRobertaTokenizer",
14
+ "unk_token": "<unk>"
15
+ }
transformer/checkpoint-1685/trainer_state.json ADDED
@@ -0,0 +1,577 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 1011,
3
+ "best_metric": 0.7939698492462312,
4
+ "best_model_checkpoint": "/content/agri-vegetable_oils-classifier/transformer/checkpoint-1011",
5
+ "epoch": 5.0,
6
+ "eval_steps": 500,
7
+ "global_step": 1685,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.07418397626112759,
14
+ "grad_norm": 7.607387542724609,
15
+ "learning_rate": 2.8571428571428573e-06,
16
+ "loss": 0.776995849609375,
17
+ "step": 25
18
+ },
19
+ {
20
+ "epoch": 0.14836795252225518,
21
+ "grad_norm": 7.806713581085205,
22
+ "learning_rate": 5.833333333333334e-06,
23
+ "loss": 0.6094583129882812,
24
+ "step": 50
25
+ },
26
+ {
27
+ "epoch": 0.22255192878338279,
28
+ "grad_norm": 13.206457138061523,
29
+ "learning_rate": 8.80952380952381e-06,
30
+ "loss": 0.5822508239746094,
31
+ "step": 75
32
+ },
33
+ {
34
+ "epoch": 0.29673590504451036,
35
+ "grad_norm": 5.247451305389404,
36
+ "learning_rate": 1.1785714285714287e-05,
37
+ "loss": 0.5223202514648437,
38
+ "step": 100
39
+ },
40
+ {
41
+ "epoch": 0.37091988130563797,
42
+ "grad_norm": 5.2997918128967285,
43
+ "learning_rate": 1.4761904761904763e-05,
44
+ "loss": 0.4415196228027344,
45
+ "step": 125
46
+ },
47
+ {
48
+ "epoch": 0.44510385756676557,
49
+ "grad_norm": 7.833019733428955,
50
+ "learning_rate": 1.7738095238095237e-05,
51
+ "loss": 0.36593223571777345,
52
+ "step": 150
53
+ },
54
+ {
55
+ "epoch": 0.5192878338278932,
56
+ "grad_norm": 16.1845645904541,
57
+ "learning_rate": 1.992089650626236e-05,
58
+ "loss": 0.37993320465087893,
59
+ "step": 175
60
+ },
61
+ {
62
+ "epoch": 0.5934718100890207,
63
+ "grad_norm": 3.0503382682800293,
64
+ "learning_rate": 1.959129861568886e-05,
65
+ "loss": 0.36956878662109377,
66
+ "step": 200
67
+ },
68
+ {
69
+ "epoch": 0.6676557863501483,
70
+ "grad_norm": 5.835538387298584,
71
+ "learning_rate": 1.926170072511536e-05,
72
+ "loss": 0.4063117218017578,
73
+ "step": 225
74
+ },
75
+ {
76
+ "epoch": 0.7418397626112759,
77
+ "grad_norm": 18.82291030883789,
78
+ "learning_rate": 1.893210283454186e-05,
79
+ "loss": 0.2881482696533203,
80
+ "step": 250
81
+ },
82
+ {
83
+ "epoch": 0.8160237388724035,
84
+ "grad_norm": 6.1299285888671875,
85
+ "learning_rate": 1.860250494396836e-05,
86
+ "loss": 0.374752311706543,
87
+ "step": 275
88
+ },
89
+ {
90
+ "epoch": 0.8902077151335311,
91
+ "grad_norm": 4.416833400726318,
92
+ "learning_rate": 1.8272907053394858e-05,
93
+ "loss": 0.29481241226196286,
94
+ "step": 300
95
+ },
96
+ {
97
+ "epoch": 0.9643916913946587,
98
+ "grad_norm": 4.16887903213501,
99
+ "learning_rate": 1.794330916282136e-05,
100
+ "loss": 0.3296230316162109,
101
+ "step": 325
102
+ },
103
+ {
104
+ "epoch": 1.0,
105
+ "eval_accuracy": 0.8946037099494097,
106
+ "eval_f1": 0.7464503042596349,
107
+ "eval_loss": 0.28156211972236633,
108
+ "eval_precision": 0.8888888888888888,
109
+ "eval_recall": 0.6433566433566433,
110
+ "eval_roc_auc": 0.9320687645687645,
111
+ "eval_runtime": 4.1098,
112
+ "eval_samples_per_second": 288.579,
113
+ "eval_steps_per_second": 9.246,
114
+ "step": 337
115
+ },
116
+ {
117
+ "epoch": 1.0385756676557865,
118
+ "grad_norm": 5.179116249084473,
119
+ "learning_rate": 1.761371127224786e-05,
120
+ "loss": 0.33882320404052735,
121
+ "step": 350
122
+ },
123
+ {
124
+ "epoch": 1.1127596439169138,
125
+ "grad_norm": 10.036450386047363,
126
+ "learning_rate": 1.728411338167436e-05,
127
+ "loss": 0.3026165008544922,
128
+ "step": 375
129
+ },
130
+ {
131
+ "epoch": 1.1869436201780414,
132
+ "grad_norm": 19.071561813354492,
133
+ "learning_rate": 1.695451549110086e-05,
134
+ "loss": 0.31119293212890625,
135
+ "step": 400
136
+ },
137
+ {
138
+ "epoch": 1.2611275964391693,
139
+ "grad_norm": 5.930752277374268,
140
+ "learning_rate": 1.6624917600527356e-05,
141
+ "loss": 0.32217376708984374,
142
+ "step": 425
143
+ },
144
+ {
145
+ "epoch": 1.3353115727002967,
146
+ "grad_norm": 3.7290303707122803,
147
+ "learning_rate": 1.629531970995386e-05,
148
+ "loss": 0.23157772064208984,
149
+ "step": 450
150
+ },
151
+ {
152
+ "epoch": 1.4094955489614243,
153
+ "grad_norm": 4.3909807205200195,
154
+ "learning_rate": 1.5965721819380357e-05,
155
+ "loss": 0.3308553695678711,
156
+ "step": 475
157
+ },
158
+ {
159
+ "epoch": 1.4836795252225519,
160
+ "grad_norm": 10.672834396362305,
161
+ "learning_rate": 1.5636123928806857e-05,
162
+ "loss": 0.29594322204589846,
163
+ "step": 500
164
+ },
165
+ {
166
+ "epoch": 1.5578635014836797,
167
+ "grad_norm": 3.9584341049194336,
168
+ "learning_rate": 1.5306526038233357e-05,
169
+ "loss": 0.2718320846557617,
170
+ "step": 525
171
+ },
172
+ {
173
+ "epoch": 1.632047477744807,
174
+ "grad_norm": 5.513729095458984,
175
+ "learning_rate": 1.4976928147659858e-05,
176
+ "loss": 0.3004481887817383,
177
+ "step": 550
178
+ },
179
+ {
180
+ "epoch": 1.7062314540059347,
181
+ "grad_norm": 7.17445182800293,
182
+ "learning_rate": 1.4647330257086356e-05,
183
+ "loss": 0.2818168640136719,
184
+ "step": 575
185
+ },
186
+ {
187
+ "epoch": 1.7804154302670623,
188
+ "grad_norm": 5.887065410614014,
189
+ "learning_rate": 1.4317732366512855e-05,
190
+ "loss": 0.24372146606445313,
191
+ "step": 600
192
+ },
193
+ {
194
+ "epoch": 1.8545994065281899,
195
+ "grad_norm": 7.244300365447998,
196
+ "learning_rate": 1.3988134475939355e-05,
197
+ "loss": 0.26590900421142577,
198
+ "step": 625
199
+ },
200
+ {
201
+ "epoch": 1.9287833827893175,
202
+ "grad_norm": 2.8263907432556152,
203
+ "learning_rate": 1.3658536585365855e-05,
204
+ "loss": 0.2646135139465332,
205
+ "step": 650
206
+ },
207
+ {
208
+ "epoch": 2.0,
209
+ "eval_accuracy": 0.8819561551433389,
210
+ "eval_f1": 0.7552447552447552,
211
+ "eval_loss": 0.28535765409469604,
212
+ "eval_precision": 0.7552447552447552,
213
+ "eval_recall": 0.7552447552447552,
214
+ "eval_roc_auc": 0.9397999222999223,
215
+ "eval_runtime": 4.0785,
216
+ "eval_samples_per_second": 290.792,
217
+ "eval_steps_per_second": 9.317,
218
+ "step": 674
219
+ },
220
+ {
221
+ "epoch": 2.0029673590504453,
222
+ "grad_norm": 7.551307678222656,
223
+ "learning_rate": 1.3328938694792356e-05,
224
+ "loss": 0.27457916259765625,
225
+ "step": 675
226
+ },
227
+ {
228
+ "epoch": 2.077151335311573,
229
+ "grad_norm": 4.620733737945557,
230
+ "learning_rate": 1.2999340804218854e-05,
231
+ "loss": 0.20403297424316405,
232
+ "step": 700
233
+ },
234
+ {
235
+ "epoch": 2.1513353115727005,
236
+ "grad_norm": 7.455748558044434,
237
+ "learning_rate": 1.2669742913645353e-05,
238
+ "loss": 0.22817506790161132,
239
+ "step": 725
240
+ },
241
+ {
242
+ "epoch": 2.2255192878338277,
243
+ "grad_norm": 4.345335483551025,
244
+ "learning_rate": 1.2340145023071851e-05,
245
+ "loss": 0.23041894912719726,
246
+ "step": 750
247
+ },
248
+ {
249
+ "epoch": 2.2997032640949557,
250
+ "grad_norm": 2.759720802307129,
251
+ "learning_rate": 1.2010547132498353e-05,
252
+ "loss": 0.2598771286010742,
253
+ "step": 775
254
+ },
255
+ {
256
+ "epoch": 2.373887240356083,
257
+ "grad_norm": 12.658757209777832,
258
+ "learning_rate": 1.1680949241924852e-05,
259
+ "loss": 0.1732135009765625,
260
+ "step": 800
261
+ },
262
+ {
263
+ "epoch": 2.4480712166172105,
264
+ "grad_norm": 21.78675651550293,
265
+ "learning_rate": 1.1351351351351352e-05,
266
+ "loss": 0.27717506408691406,
267
+ "step": 825
268
+ },
269
+ {
270
+ "epoch": 2.5222551928783385,
271
+ "grad_norm": 11.829066276550293,
272
+ "learning_rate": 1.1021753460777851e-05,
273
+ "loss": 0.233128604888916,
274
+ "step": 850
275
+ },
276
+ {
277
+ "epoch": 2.596439169139466,
278
+ "grad_norm": 10.126202583312988,
279
+ "learning_rate": 1.0692155570204353e-05,
280
+ "loss": 0.2260282325744629,
281
+ "step": 875
282
+ },
283
+ {
284
+ "epoch": 2.6706231454005933,
285
+ "grad_norm": 8.723063468933105,
286
+ "learning_rate": 1.0362557679630852e-05,
287
+ "loss": 0.17913871765136719,
288
+ "step": 900
289
+ },
290
+ {
291
+ "epoch": 2.744807121661721,
292
+ "grad_norm": 2.2658655643463135,
293
+ "learning_rate": 1.003295978905735e-05,
294
+ "loss": 0.22353851318359375,
295
+ "step": 925
296
+ },
297
+ {
298
+ "epoch": 2.8189910979228485,
299
+ "grad_norm": 6.125418663024902,
300
+ "learning_rate": 9.70336189848385e-06,
301
+ "loss": 0.22848413467407228,
302
+ "step": 950
303
+ },
304
+ {
305
+ "epoch": 2.893175074183976,
306
+ "grad_norm": 8.733881950378418,
307
+ "learning_rate": 9.373764007910349e-06,
308
+ "loss": 0.22179716110229492,
309
+ "step": 975
310
+ },
311
+ {
312
+ "epoch": 2.9673590504451037,
313
+ "grad_norm": 6.053173542022705,
314
+ "learning_rate": 9.04416611733685e-06,
315
+ "loss": 0.23357131958007812,
316
+ "step": 1000
317
+ },
318
+ {
319
+ "epoch": 3.0,
320
+ "eval_accuracy": 0.8962900505902193,
321
+ "eval_f1": 0.7939698492462312,
322
+ "eval_loss": 0.3055192828178406,
323
+ "eval_precision": 0.7620578778135049,
324
+ "eval_recall": 0.8286713286713286,
325
+ "eval_roc_auc": 0.9402564102564102,
326
+ "eval_runtime": 4.3002,
327
+ "eval_samples_per_second": 275.803,
328
+ "eval_steps_per_second": 8.837,
329
+ "step": 1011
330
+ },
331
+ {
332
+ "epoch": 3.0415430267062313,
333
+ "grad_norm": 4.6154608726501465,
334
+ "learning_rate": 8.71456822676335e-06,
335
+ "loss": 0.12241142272949218,
336
+ "step": 1025
337
+ },
338
+ {
339
+ "epoch": 3.115727002967359,
340
+ "grad_norm": 16.85491943359375,
341
+ "learning_rate": 8.38497033618985e-06,
342
+ "loss": 0.18099328994750977,
343
+ "step": 1050
344
+ },
345
+ {
346
+ "epoch": 3.1899109792284865,
347
+ "grad_norm": 5.566222667694092,
348
+ "learning_rate": 8.055372445616348e-06,
349
+ "loss": 0.22674598693847656,
350
+ "step": 1075
351
+ },
352
+ {
353
+ "epoch": 3.264094955489614,
354
+ "grad_norm": 10.604151725769043,
355
+ "learning_rate": 7.725774555042849e-06,
356
+ "loss": 0.20099123001098632,
357
+ "step": 1100
358
+ },
359
+ {
360
+ "epoch": 3.3382789317507418,
361
+ "grad_norm": 3.627216100692749,
362
+ "learning_rate": 7.396176664469347e-06,
363
+ "loss": 0.10423069000244141,
364
+ "step": 1125
365
+ },
366
+ {
367
+ "epoch": 3.4124629080118694,
368
+ "grad_norm": 8.285340309143066,
369
+ "learning_rate": 7.066578773895848e-06,
370
+ "loss": 0.19954639434814453,
371
+ "step": 1150
372
+ },
373
+ {
374
+ "epoch": 3.486646884272997,
375
+ "grad_norm": 5.19682502746582,
376
+ "learning_rate": 6.736980883322347e-06,
377
+ "loss": 0.17898582458496093,
378
+ "step": 1175
379
+ },
380
+ {
381
+ "epoch": 3.5608308605341246,
382
+ "grad_norm": 19.798147201538086,
383
+ "learning_rate": 6.407382992748847e-06,
384
+ "loss": 0.10967336654663086,
385
+ "step": 1200
386
+ },
387
+ {
388
+ "epoch": 3.635014836795252,
389
+ "grad_norm": 10.85386848449707,
390
+ "learning_rate": 6.077785102175347e-06,
391
+ "loss": 0.24327730178833007,
392
+ "step": 1225
393
+ },
394
+ {
395
+ "epoch": 3.7091988130563798,
396
+ "grad_norm": 6.869043350219727,
397
+ "learning_rate": 5.748187211601846e-06,
398
+ "loss": 0.19570405960083007,
399
+ "step": 1250
400
+ },
401
+ {
402
+ "epoch": 3.7833827893175074,
403
+ "grad_norm": 2.955522060394287,
404
+ "learning_rate": 5.418589321028346e-06,
405
+ "loss": 0.14091815948486328,
406
+ "step": 1275
407
+ },
408
+ {
409
+ "epoch": 3.857566765578635,
410
+ "grad_norm": 23.062135696411133,
411
+ "learning_rate": 5.088991430454846e-06,
412
+ "loss": 0.14592092514038085,
413
+ "step": 1300
414
+ },
415
+ {
416
+ "epoch": 3.9317507418397626,
417
+ "grad_norm": 8.349876403808594,
418
+ "learning_rate": 4.7593935398813455e-06,
419
+ "loss": 0.19898681640625,
420
+ "step": 1325
421
+ },
422
+ {
423
+ "epoch": 4.0,
424
+ "eval_accuracy": 0.8895446880269815,
425
+ "eval_f1": 0.7639639639639639,
426
+ "eval_loss": 0.4294162392616272,
427
+ "eval_precision": 0.7881040892193308,
428
+ "eval_recall": 0.7412587412587412,
429
+ "eval_roc_auc": 0.9231895881895882,
430
+ "eval_runtime": 4.0864,
431
+ "eval_samples_per_second": 290.232,
432
+ "eval_steps_per_second": 9.299,
433
+ "step": 1348
434
+ },
435
+ {
436
+ "epoch": 4.005934718100891,
437
+ "grad_norm": 2.0193355083465576,
438
+ "learning_rate": 4.429795649307845e-06,
439
+ "loss": 0.15660418510437013,
440
+ "step": 1350
441
+ },
442
+ {
443
+ "epoch": 4.080118694362018,
444
+ "grad_norm": 1.653880000114441,
445
+ "learning_rate": 4.100197758734344e-06,
446
+ "loss": 0.12126725196838378,
447
+ "step": 1375
448
+ },
449
+ {
450
+ "epoch": 4.154302670623146,
451
+ "grad_norm": 13.234806060791016,
452
+ "learning_rate": 3.7705998681608443e-06,
453
+ "loss": 0.13048830032348632,
454
+ "step": 1400
455
+ },
456
+ {
457
+ "epoch": 4.228486646884273,
458
+ "grad_norm": 10.989103317260742,
459
+ "learning_rate": 3.4410019775873437e-06,
460
+ "loss": 0.10581409454345703,
461
+ "step": 1425
462
+ },
463
+ {
464
+ "epoch": 4.302670623145401,
465
+ "grad_norm": 8.81531047821045,
466
+ "learning_rate": 3.1114040870138436e-06,
467
+ "loss": 0.17003868103027345,
468
+ "step": 1450
469
+ },
470
+ {
471
+ "epoch": 4.376854599406528,
472
+ "grad_norm": 4.192999839782715,
473
+ "learning_rate": 2.781806196440343e-06,
474
+ "loss": 0.15118574142456054,
475
+ "step": 1475
476
+ },
477
+ {
478
+ "epoch": 4.451038575667655,
479
+ "grad_norm": 5.479171276092529,
480
+ "learning_rate": 2.452208305866843e-06,
481
+ "loss": 0.11323611259460449,
482
+ "step": 1500
483
+ },
484
+ {
485
+ "epoch": 4.525222551928783,
486
+ "grad_norm": 13.424686431884766,
487
+ "learning_rate": 2.1226104152933423e-06,
488
+ "loss": 0.11121854782104493,
489
+ "step": 1525
490
+ },
491
+ {
492
+ "epoch": 4.5994065281899115,
493
+ "grad_norm": 1.8592311143875122,
494
+ "learning_rate": 1.7930125247198418e-06,
495
+ "loss": 0.13594526290893555,
496
+ "step": 1550
497
+ },
498
+ {
499
+ "epoch": 4.673590504451038,
500
+ "grad_norm": 12.205918312072754,
501
+ "learning_rate": 1.4634146341463414e-06,
502
+ "loss": 0.14403249740600585,
503
+ "step": 1575
504
+ },
505
+ {
506
+ "epoch": 4.747774480712166,
507
+ "grad_norm": 7.339951515197754,
508
+ "learning_rate": 1.133816743572841e-06,
509
+ "loss": 0.12573807716369628,
510
+ "step": 1600
511
+ },
512
+ {
513
+ "epoch": 4.821958456973293,
514
+ "grad_norm": 0.12120050936937332,
515
+ "learning_rate": 8.042188529993409e-07,
516
+ "loss": 0.08601081848144532,
517
+ "step": 1625
518
+ },
519
+ {
520
+ "epoch": 4.896142433234421,
521
+ "grad_norm": 21.18063735961914,
522
+ "learning_rate": 4.746209624258405e-07,
523
+ "loss": 0.13446776390075685,
524
+ "step": 1650
525
+ },
526
+ {
527
+ "epoch": 4.970326409495549,
528
+ "grad_norm": 12.49176025390625,
529
+ "learning_rate": 1.4502307185234015e-07,
530
+ "loss": 0.121560697555542,
531
+ "step": 1675
532
+ },
533
+ {
534
+ "epoch": 5.0,
535
+ "eval_accuracy": 0.8887015177065767,
536
+ "eval_f1": 0.7684210526315789,
537
+ "eval_loss": 0.5178586840629578,
538
+ "eval_precision": 0.7711267605633803,
539
+ "eval_recall": 0.7657342657342657,
540
+ "eval_roc_auc": 0.9215093240093241,
541
+ "eval_runtime": 4.1776,
542
+ "eval_samples_per_second": 283.894,
543
+ "eval_steps_per_second": 9.096,
544
+ "step": 1685
545
+ }
546
+ ],
547
+ "logging_steps": 25,
548
+ "max_steps": 1685,
549
+ "num_input_tokens_seen": 0,
550
+ "num_train_epochs": 5,
551
+ "save_steps": 500,
552
+ "stateful_callbacks": {
553
+ "EarlyStoppingCallback": {
554
+ "args": {
555
+ "early_stopping_patience": 2,
556
+ "early_stopping_threshold": 0.0
557
+ },
558
+ "attributes": {
559
+ "early_stopping_patience_counter": 2
560
+ }
561
+ },
562
+ "TrainerControl": {
563
+ "args": {
564
+ "should_epoch_stop": false,
565
+ "should_evaluate": false,
566
+ "should_log": false,
567
+ "should_save": true,
568
+ "should_training_stop": true
569
+ },
570
+ "attributes": {}
571
+ }
572
+ },
573
+ "total_flos": 3540159249868800.0,
574
+ "train_batch_size": 16,
575
+ "trial_name": null,
576
+ "trial_params": null
577
+ }
transformer/checkpoint-1685/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd2294ff2f963cda1289e542973e812736151f37ebfb13aa91871d4ef000d8f6
3
+ size 5201
transformer/checkpoint-337/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "NOT_RELEVANT",
16
+ "1": "RELEVANT"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "is_decoder": false,
21
+ "label2id": {
22
+ "NOT_RELEVANT": 0,
23
+ "RELEVANT": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "xlm-roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "output_past": true,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.10.2",
36
+ "type_vocab_size": 1,
37
+ "use_cache": false,
38
+ "vocab_size": 250002
39
+ }