forthisdream/ATSI-text-classification-model
Browse files- README.md +75 -0
- config.json +47 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
model-index:
|
12 |
+
- name: TTC4900Model
|
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 |
+
# TTC4900Model
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.0667
|
24 |
+
- Accuracy: 0.9859
|
25 |
+
- F1: 0.9418
|
26 |
+
- Precision: 0.9562
|
27 |
+
- Recall: 0.9309
|
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 |
+
| 1.5192 | 0.3289 | 50 | 0.9342 | 0.7575 | 0.1077 | 0.0947 | 0.125 |
|
61 |
+
| 0.6007 | 0.6579 | 100 | 0.4256 | 0.8767 | 0.3189 | 0.2983 | 0.3445 |
|
62 |
+
| 0.2704 | 0.9868 | 150 | 0.2471 | 0.9561 | 0.6877 | 0.6916 | 0.6917 |
|
63 |
+
| 0.1382 | 1.3158 | 200 | 0.1346 | 0.9727 | 0.8789 | 0.9054 | 0.8698 |
|
64 |
+
| 0.1132 | 1.6447 | 250 | 0.0824 | 0.9876 | 0.9350 | 0.9701 | 0.9103 |
|
65 |
+
| 0.0981 | 1.9737 | 300 | 0.0431 | 0.9942 | 0.9749 | 0.9892 | 0.9635 |
|
66 |
+
| 0.0369 | 2.3026 | 350 | 0.0466 | 0.9892 | 0.9376 | 0.9576 | 0.9275 |
|
67 |
+
| 0.0373 | 2.6316 | 400 | 0.0413 | 0.9909 | 0.9602 | 0.9580 | 0.9630 |
|
68 |
+
| 0.0235 | 2.9605 | 450 | 0.0407 | 0.9909 | 0.9613 | 0.9600 | 0.9630 |
|
69 |
+
|
70 |
+
|
71 |
+
### Framework versions
|
72 |
+
|
73 |
+
- Transformers 4.41.2
|
74 |
+
- Pytorch 2.3.0+cu121
|
75 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "atis_airfare",
|
14 |
+
"1": "atis_flight",
|
15 |
+
"2": "atis_abbreviation",
|
16 |
+
"3": "atis_ground_service",
|
17 |
+
"4": "atis_flight_time",
|
18 |
+
"5": "atis_quantity",
|
19 |
+
"6": "atis_airline",
|
20 |
+
"7": "atis_aircraft"
|
21 |
+
},
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"atis_abbreviation": 2,
|
26 |
+
"atis_aircraft": 7,
|
27 |
+
"atis_airfare": 0,
|
28 |
+
"atis_airline": 6,
|
29 |
+
"atis_flight": 1,
|
30 |
+
"atis_flight_time": 4,
|
31 |
+
"atis_ground_service": 3,
|
32 |
+
"atis_quantity": 5
|
33 |
+
},
|
34 |
+
"layer_norm_eps": 1e-12,
|
35 |
+
"max_position_embeddings": 512,
|
36 |
+
"model_type": "bert",
|
37 |
+
"num_attention_heads": 12,
|
38 |
+
"num_hidden_layers": 12,
|
39 |
+
"pad_token_id": 0,
|
40 |
+
"position_embedding_type": "absolute",
|
41 |
+
"problem_type": "single_label_classification",
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.41.2",
|
44 |
+
"type_vocab_size": 2,
|
45 |
+
"use_cache": true,
|
46 |
+
"vocab_size": 30522
|
47 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49a3167ac43f76b6cb5d6644744026e934fff0f7b3b15f3307578a71303924be
|
3 |
+
size 437977104
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94598e3f97c6865da626fa166c27fbae34b52ad0f2d77001cccb9a7c5fd83f09
|
3 |
+
size 5112
|