End of training
Browse files- README.md +73 -0
- config.json +54 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: roberta-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
model-index:
|
12 |
+
- name: fintunned-v2-roberta
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# fintunned-v2-roberta
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.2012
|
24 |
+
- Accuracy: 0.95
|
25 |
+
- F1: 0.9504
|
26 |
+
- Precision: 0.9517
|
27 |
+
- Recall: 0.9498
|
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: 16
|
48 |
+
- eval_batch_size: 32
|
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: 100
|
53 |
+
- num_epochs: 3
|
54 |
+
- mixed_precision_training: Native AMP
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
60 |
+
| 2.3929 | 0.45 | 50 | 2.2723 | 0.2773 | 0.1892 | 0.2335 | 0.2947 |
|
61 |
+
| 1.2165 | 0.91 | 100 | 0.4612 | 0.8818 | 0.8839 | 0.8978 | 0.8825 |
|
62 |
+
| 0.3732 | 1.36 | 150 | 0.3472 | 0.9045 | 0.9058 | 0.9092 | 0.9060 |
|
63 |
+
| 0.3306 | 1.82 | 200 | 0.3077 | 0.9227 | 0.9249 | 0.9267 | 0.9250 |
|
64 |
+
| 0.2537 | 2.27 | 250 | 0.2419 | 0.9273 | 0.9281 | 0.9290 | 0.9291 |
|
65 |
+
| 0.0997 | 2.73 | 300 | 0.2012 | 0.95 | 0.9504 | 0.9517 | 0.9498 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.35.2
|
71 |
+
- Pytorch 2.1.0+cu121
|
72 |
+
- Datasets 2.16.1
|
73 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "roberta-base",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "depression",
|
15 |
+
"1": "anxiety",
|
16 |
+
"2": "bipolar disorder",
|
17 |
+
"3": "schizophrenia",
|
18 |
+
"4": "PTSD",
|
19 |
+
"5": "OCD",
|
20 |
+
"6": "ADHD",
|
21 |
+
"7": "autism",
|
22 |
+
"8": "eating disorder",
|
23 |
+
"9": "personality disorder",
|
24 |
+
"10": "phobia"
|
25 |
+
},
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"intermediate_size": 3072,
|
28 |
+
"label2id": {
|
29 |
+
"ADHD": 6,
|
30 |
+
"OCD": 5,
|
31 |
+
"PTSD": 4,
|
32 |
+
"anxiety": 1,
|
33 |
+
"autism": 7,
|
34 |
+
"bipolar disorder": 2,
|
35 |
+
"depression": 0,
|
36 |
+
"eating disorder": 8,
|
37 |
+
"personality disorder": 9,
|
38 |
+
"phobia": 10,
|
39 |
+
"schizophrenia": 3
|
40 |
+
},
|
41 |
+
"layer_norm_eps": 1e-05,
|
42 |
+
"max_position_embeddings": 514,
|
43 |
+
"model_type": "roberta",
|
44 |
+
"num_attention_heads": 12,
|
45 |
+
"num_hidden_layers": 12,
|
46 |
+
"pad_token_id": 1,
|
47 |
+
"position_embedding_type": "absolute",
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"torch_dtype": "float32",
|
50 |
+
"transformers_version": "4.35.2",
|
51 |
+
"type_vocab_size": 1,
|
52 |
+
"use_cache": true,
|
53 |
+
"vocab_size": 50265
|
54 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc1a386356db7df159da8720854b745b19cd60fef1163c6c0c8c686b51f2e636
|
3 |
+
size 498640508
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:22ae059b530200459088bf2c0d4b333bd9f5022b24c7389133c8ba2ef506a8b8
|
3 |
+
size 4536
|