Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +52 -0
- config.json +80 -0
- pytorch_model.bin +3 -0
- sample_input.pkl +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
.gitattributes
CHANGED
@@ -25,3 +25,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags: autotrain
|
3 |
+
language: en
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- justpyschitry/autotrain-data-Wikipeida_Article_Classifier_by_Chap
|
8 |
+
co2_eq_emissions: 16.816741650923202
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 1022634735
|
15 |
+
- CO2 Emissions (in grams): 16.816741650923202
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 0.4373569190502167
|
20 |
+
- Accuracy: 0.9027552674230146
|
21 |
+
- Macro F1: 0.8938134766263609
|
22 |
+
- Micro F1: 0.9027552674230146
|
23 |
+
- Weighted F1: 0.9023653852553881
|
24 |
+
- Macro Precision: 0.8970541297231431
|
25 |
+
- Micro Precision: 0.9027552674230146
|
26 |
+
- Weighted Precision: 0.903514305510645
|
27 |
+
- Macro Recall: 0.892665778987219
|
28 |
+
- Micro Recall: 0.9027552674230146
|
29 |
+
- Weighted Recall: 0.9027552674230146
|
30 |
+
|
31 |
+
|
32 |
+
## Usage
|
33 |
+
|
34 |
+
You can use cURL to access this model:
|
35 |
+
|
36 |
+
```
|
37 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735", use_auth_token=True)
|
48 |
+
|
49 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
50 |
+
|
51 |
+
outputs = model(**inputs)
|
52 |
+
```
|
config.json
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 20,
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"directionality": "bidi",
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 1024,
|
14 |
+
"id2label": {
|
15 |
+
"0": "Certain infectious or parasitic diseases",
|
16 |
+
"1": "Developmental anaomalies",
|
17 |
+
"2": "Diseases of the blood or blood forming organs",
|
18 |
+
"3": "Diseases of the genitourinary system",
|
19 |
+
"4": "Mental behavioural or neurodevelopmental disorders",
|
20 |
+
"5": "Neoplasms",
|
21 |
+
"6": "certain conditions originating in the perinatal period",
|
22 |
+
"7": "conditions related to sexual health",
|
23 |
+
"8": "diseases of the circulatroy system",
|
24 |
+
"9": "diseases of the digestive system",
|
25 |
+
"10": "diseases of the ear or mastoid process",
|
26 |
+
"11": "diseases of the immune system",
|
27 |
+
"12": "diseases of the musculoskeletal system or connective tissue",
|
28 |
+
"13": "diseases of the nervous system",
|
29 |
+
"14": "diseases of the respiratory system",
|
30 |
+
"15": "diseases of the skin",
|
31 |
+
"16": "diseases of the visual system",
|
32 |
+
"17": "endocrine nutritional or metabolic diseases",
|
33 |
+
"18": "pregnanacy childbirth or the puerperium",
|
34 |
+
"19": "sleep-wake disorders"
|
35 |
+
},
|
36 |
+
"initializer_range": 0.02,
|
37 |
+
"intermediate_size": 4096,
|
38 |
+
"label2id": {
|
39 |
+
"Certain infectious or parasitic diseases": 0,
|
40 |
+
"Developmental anaomalies": 1,
|
41 |
+
"Diseases of the blood or blood forming organs": 2,
|
42 |
+
"Diseases of the genitourinary system": 3,
|
43 |
+
"Mental behavioural or neurodevelopmental disorders": 4,
|
44 |
+
"Neoplasms": 5,
|
45 |
+
"certain conditions originating in the perinatal period": 6,
|
46 |
+
"conditions related to sexual health": 7,
|
47 |
+
"diseases of the circulatroy system": 8,
|
48 |
+
"diseases of the digestive system": 9,
|
49 |
+
"diseases of the ear or mastoid process": 10,
|
50 |
+
"diseases of the immune system": 11,
|
51 |
+
"diseases of the musculoskeletal system or connective tissue": 12,
|
52 |
+
"diseases of the nervous system": 13,
|
53 |
+
"diseases of the respiratory system": 14,
|
54 |
+
"diseases of the skin": 15,
|
55 |
+
"diseases of the visual system": 16,
|
56 |
+
"endocrine nutritional or metabolic diseases": 17,
|
57 |
+
"pregnanacy childbirth or the puerperium": 18,
|
58 |
+
"sleep-wake disorders": 19
|
59 |
+
},
|
60 |
+
"layer_norm_eps": 1e-12,
|
61 |
+
"max_length": 128,
|
62 |
+
"max_position_embeddings": 512,
|
63 |
+
"model_type": "bert",
|
64 |
+
"num_attention_heads": 16,
|
65 |
+
"num_hidden_layers": 24,
|
66 |
+
"pad_token_id": 0,
|
67 |
+
"padding": "max_length",
|
68 |
+
"pooler_fc_size": 768,
|
69 |
+
"pooler_num_attention_heads": 12,
|
70 |
+
"pooler_num_fc_layers": 3,
|
71 |
+
"pooler_size_per_head": 128,
|
72 |
+
"pooler_type": "first_token_transform",
|
73 |
+
"position_embedding_type": "absolute",
|
74 |
+
"problem_type": "single_label_classification",
|
75 |
+
"torch_dtype": "float32",
|
76 |
+
"transformers_version": "4.15.0",
|
77 |
+
"type_vocab_size": 2,
|
78 |
+
"use_cache": true,
|
79 |
+
"vocab_size": 28996
|
80 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b907498c548d991c11749136e18f3dbd1be694116226a098756008ad75c11a89
|
3 |
+
size 1334560749
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3febec0bca076249a423a66f54312182ec8b9ad8a95afe5765a7bf65442d2151
|
3 |
+
size 4384
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoTrain", "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|