sandeshrajx/bert-fraud-classification-test
Browse files- README.md +75 -0
- config.json +32 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google-bert/bert-base-multilingual-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- f1
|
9 |
+
- precision
|
10 |
+
model-index:
|
11 |
+
- name: test_trainer_20240918_1411
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/sandeshrajx/ultron-nlp/runs/ehdpl54g)
|
19 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/sandeshrajx/ultron-nlp/runs/ehdpl54g)
|
20 |
+
# test_trainer_20240918_1411
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [google-bert/bert-base-multilingual-uncased](https://huggingface.co/google-bert/bert-base-multilingual-uncased) on the None dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.6431
|
25 |
+
- F1: 0.7435
|
26 |
+
- Precision: 0.6605
|
27 |
+
- Val Accuracy: {'accuracy': 0.706}
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 5e-05
|
47 |
+
- train_batch_size: 32
|
48 |
+
- eval_batch_size: 16
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_steps: 500
|
53 |
+
- num_epochs: 3
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Val Accuracy |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:-------------------:|
|
59 |
+
| 0.601 | 0.32 | 40 | 0.6152 | 0.7039 | 0.6597 | {'accuracy': 0.682} |
|
60 |
+
| 0.6332 | 0.64 | 80 | 0.6143 | 0.7068 | 0.6515 | {'accuracy': 0.679} |
|
61 |
+
| 0.4862 | 0.96 | 120 | 0.5791 | 0.7151 | 0.7137 | {'accuracy': 0.714} |
|
62 |
+
| 0.6297 | 1.28 | 160 | 0.6323 | 0.7281 | 0.6495 | {'accuracy': 0.69} |
|
63 |
+
| 0.6164 | 1.6 | 200 | 0.5010 | 0.7522 | 0.8345 | {'accuracy': 0.774} |
|
64 |
+
| 0.6333 | 1.92 | 240 | 0.5824 | 0.7310 | 0.6828 | {'accuracy': 0.71} |
|
65 |
+
| 0.4465 | 2.24 | 280 | 0.5335 | 0.7579 | 0.7695 | {'accuracy': 0.761} |
|
66 |
+
| 0.5342 | 2.56 | 320 | 0.5065 | 0.7644 | 0.8040 | {'accuracy': 0.775} |
|
67 |
+
| 0.5462 | 2.88 | 360 | 0.6431 | 0.7435 | 0.6605 | {'accuracy': 0.706} |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.45.0.dev0
|
73 |
+
- Pytorch 2.4.0+cu121
|
74 |
+
- Datasets 3.0.0
|
75 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/bert-base-multilingual-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 3072,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"max_position_embeddings": 512,
|
16 |
+
"model_type": "bert",
|
17 |
+
"num_attention_heads": 12,
|
18 |
+
"num_hidden_layers": 12,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"pooler_fc_size": 768,
|
21 |
+
"pooler_num_attention_heads": 12,
|
22 |
+
"pooler_num_fc_layers": 3,
|
23 |
+
"pooler_size_per_head": 128,
|
24 |
+
"pooler_type": "first_token_transform",
|
25 |
+
"position_embedding_type": "absolute",
|
26 |
+
"problem_type": "single_label_classification",
|
27 |
+
"torch_dtype": "float32",
|
28 |
+
"transformers_version": "4.45.0.dev0",
|
29 |
+
"type_vocab_size": 2,
|
30 |
+
"use_cache": true,
|
31 |
+
"vocab_size": 105879
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37227cb6d634cf1794cc11ddd08e11d0f34185929bcda7a542c5a70dbd0f7e25
|
3 |
+
size 669455360
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bde43e1e571400ff3c18f325947170df6183a6f01e61972fbfb6f8da3d332624
|
3 |
+
size 5176
|