Training 20251208_194407 - 6 classes with metrics

#24
by rkenji - opened
Files changed (3) hide show
  1. README.md +24 -26
  2. config.json +12 -14
  3. model.safetensors +2 -2
README.md CHANGED
@@ -19,15 +19,15 @@ model-index:
19
  type: legal_documents
20
  metrics:
21
  - type: accuracy
22
- value: 0.924822695035461
23
  - type: f1
24
- value: 0.9194249427990718
25
  - type: precision
26
- value: 0.9170301776376935
27
  - type: recall
28
- value: 0.924822695035461
29
  - type: f1_macro
30
- value: 0.7914249223969743
31
  ---
32
 
33
  # Model Card for Model ID
@@ -51,7 +51,7 @@ Este modelo foi treinado para classificar documentos jurídicos brasileiros usan
51
 
52
  - **Base Model:** google-bert/bert-base-multilingual-cased
53
  - **Tipo:** Classificação Multiclasse
54
- - **Número de Classes:** 7
55
  - **Idioma:** Português (Brasil)
56
  - **Domínio:** Documentos Jurídicos
57
 
@@ -59,38 +59,36 @@ Este modelo foi treinado para classificar documentos jurídicos brasileiros usan
59
 
60
  0. Alvará
61
  1. Sentença
62
- 2. Penhora/Arresto/Sequestro
63
  3. Citação
64
- 4. Art.40
65
- 5. Não
66
- 6. teste 123
67
 
68
  ## Métricas de Avaliação
69
 
70
  As métricas abaixo foram calculadas no conjunto de validação:
71
 
72
- - **Accuracy:** 0.9248
73
- - **F1-Score (Weighted):** 0.9194
74
- - **Precision (Weighted):** 0.9170
75
- - **Recall (Weighted):** 0.9248
76
- - **F1-Score (Macro):** 0.7914
77
 
78
  ## Classification Report Completo
79
 
80
  ```
81
  precision recall f1-score support
82
 
83
- 0 0.00 0.00 0.00 7
84
- 1 0.94 1.00 0.97 47
85
- 2 0.94 0.77 0.85 57
86
- 3 0.80 0.97 0.88 34
87
- 4 0.94 0.87 0.90 120
88
- 5 0.93 0.96 0.94 423
89
- 6 1.00 1.00 1.00 17
90
-
91
- accuracy 0.92 705
92
- macro avg 0.79 0.80 0.79 705
93
- weighted avg 0.92 0.92 0.92 705
94
 
95
  ```
96
 
 
19
  type: legal_documents
20
  metrics:
21
  - type: accuracy
22
+ value: 0.936231884057971
23
  - type: f1
24
+ value: 0.9353615414017292
25
  - type: precision
26
+ value: 0.9369069235885541
27
  - type: recall
28
+ value: 0.936231884057971
29
  - type: f1_macro
30
+ value: 0.8474441104841182
31
  ---
32
 
33
  # Model Card for Model ID
 
51
 
52
  - **Base Model:** google-bert/bert-base-multilingual-cased
53
  - **Tipo:** Classificação Multiclasse
54
+ - **Número de Classes:** 6
55
  - **Idioma:** Português (Brasil)
56
  - **Domínio:** Documentos Jurídicos
57
 
 
59
 
60
  0. Alvará
61
  1. Sentença
62
+ 2. Penhora
63
  3. Citação
64
+ 4. Art. 40
65
+ 5. Não Influencia
 
66
 
67
  ## Métricas de Avaliação
68
 
69
  As métricas abaixo foram calculadas no conjunto de validação:
70
 
71
+ - **Accuracy:** 0.9362
72
+ - **F1-Score (Weighted):** 0.9354
73
+ - **Precision (Weighted):** 0.9369
74
+ - **Recall (Weighted):** 0.9362
75
+ - **F1-Score (Macro):** 0.8474
76
 
77
  ## Classification Report Completo
78
 
79
  ```
80
  precision recall f1-score support
81
 
82
+ 0 0.60 0.38 0.46 8
83
+ 1 0.86 0.98 0.92 45
84
+ 2 1.00 0.85 0.92 54
85
+ 3 0.85 0.95 0.90 41
86
+ 4 0.93 0.95 0.94 121
87
+ 5 0.95 0.95 0.95 421
88
+
89
+ accuracy 0.94 690
90
+ macro avg 0.87 0.84 0.85 690
91
+ weighted avg 0.94 0.94 0.94 690
 
92
 
93
  ```
94
 
config.json CHANGED
@@ -10,24 +10,22 @@
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "Alvar\u00e1",
14
- "1": "Senten\u00e7a",
15
- "2": "Penhora/Arresto/Sequestro",
16
- "3": "Cita\u00e7\u00e3o",
17
- "4": "Art.40",
18
- "5": "N\u00e3o",
19
- "6": "teste 123"
20
  },
21
  "initializer_range": 0.02,
22
  "intermediate_size": 3072,
23
  "label2id": {
24
- "Alvar\u00e1": 0,
25
- "Art.40": 4,
26
- "Cita\u00e7\u00e3o": 3,
27
- "N\u00e3o": 5,
28
- "Penhora/Arresto/Sequestro": 2,
29
- "Senten\u00e7a": 1,
30
- "teste 123": 6
31
  },
32
  "layer_norm_eps": 1e-12,
33
  "max_position_embeddings": 512,
 
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
+ "0": "646bb41b351734d0a39bb557",
14
+ "1": "652026c3798f7600075f9d40",
15
+ "2": "646bc57bc7605185f40b4263",
16
+ "3": "646b78c3dc761bc8c743a0c6",
17
+ "4": "645d42ebbacbc7baba32624d",
18
+ "5": "64ac68185fe31ca8ad57a822"
 
19
  },
20
  "initializer_range": 0.02,
21
  "intermediate_size": 3072,
22
  "label2id": {
23
+ "645d42ebbacbc7baba32624d": 4,
24
+ "646b78c3dc761bc8c743a0c6": 3,
25
+ "646bb41b351734d0a39bb557": 0,
26
+ "646bc57bc7605185f40b4263": 2,
27
+ "64ac68185fe31ca8ad57a822": 5,
28
+ "652026c3798f7600075f9d40": 1
 
29
  },
30
  "layer_norm_eps": 1e-12,
31
  "max_position_embeddings": 512,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e7a51405646562397dff1b29b51513a1d2f354d8be5165327e43849dec09a6a
3
- size 711458836
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebbc0bde22fe9605d6b416bb40abfd1a9c25bb23293ebd059249447c5a5db0fb
3
+ size 711455760