Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +52 -0
- config.json +74 -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: unk
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- justpyschitry/autotrain-data-Psychiatry_Article_Identifier
|
8 |
+
co2_eq_emissions: 13.4308931494349
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 990132822
|
15 |
+
- CO2 Emissions (in grams): 13.4308931494349
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 0.3777158558368683
|
20 |
+
- Accuracy: 0.9177471636952999
|
21 |
+
- Macro F1: 0.9082952086962773
|
22 |
+
- Micro F1: 0.9177471636952999
|
23 |
+
- Weighted F1: 0.9175376430905807
|
24 |
+
- Macro Precision: 0.9175123149319843
|
25 |
+
- Micro Precision: 0.9177471636952999
|
26 |
+
- Weighted Precision: 0.9185452324503698
|
27 |
+
- Macro Recall: 0.9042000199743617
|
28 |
+
- Micro Recall: 0.9177471636952999
|
29 |
+
- Weighted Recall: 0.9177471636952999
|
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-Psychiatry_Article_Identifier-990132822
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("justpyschitry/autotrain-Psychiatry_Article_Identifier-990132822", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("justpyschitry/autotrain-Psychiatry_Article_Identifier-990132822", 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,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "Certain infectious or parasitic diseases",
|
15 |
+
"1": "Developmental anaomalies",
|
16 |
+
"2": "Diseases of the blood or blood forming organs",
|
17 |
+
"3": "Diseases of the genitourinary system",
|
18 |
+
"4": "Mental behavioural or neurodevelopmental disorders",
|
19 |
+
"5": "Neoplasms",
|
20 |
+
"6": "certain conditions originating in the perinatal period",
|
21 |
+
"7": "conditions related to sexual health",
|
22 |
+
"8": "diseases of the circulatroy system",
|
23 |
+
"9": "diseases of the digestive system",
|
24 |
+
"10": "diseases of the ear or mastoid process",
|
25 |
+
"11": "diseases of the immune system",
|
26 |
+
"12": "diseases of the musculoskeletal system or connective tissue",
|
27 |
+
"13": "diseases of the nervous system",
|
28 |
+
"14": "diseases of the respiratory system",
|
29 |
+
"15": "diseases of the skin",
|
30 |
+
"16": "diseases of the visual system",
|
31 |
+
"17": "endocrine nutritional or metabolic diseases",
|
32 |
+
"18": "pregnanacy childbirth or the puerperium",
|
33 |
+
"19": "sleep-wake disorders"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"intermediate_size": 3072,
|
37 |
+
"label2id": {
|
38 |
+
"Certain infectious or parasitic diseases": 0,
|
39 |
+
"Developmental anaomalies": 1,
|
40 |
+
"Diseases of the blood or blood forming organs": 2,
|
41 |
+
"Diseases of the genitourinary system": 3,
|
42 |
+
"Mental behavioural or neurodevelopmental disorders": 4,
|
43 |
+
"Neoplasms": 5,
|
44 |
+
"certain conditions originating in the perinatal period": 6,
|
45 |
+
"conditions related to sexual health": 7,
|
46 |
+
"diseases of the circulatroy system": 8,
|
47 |
+
"diseases of the digestive system": 9,
|
48 |
+
"diseases of the ear or mastoid process": 10,
|
49 |
+
"diseases of the immune system": 11,
|
50 |
+
"diseases of the musculoskeletal system or connective tissue": 12,
|
51 |
+
"diseases of the nervous system": 13,
|
52 |
+
"diseases of the respiratory system": 14,
|
53 |
+
"diseases of the skin": 15,
|
54 |
+
"diseases of the visual system": 16,
|
55 |
+
"endocrine nutritional or metabolic diseases": 17,
|
56 |
+
"pregnanacy childbirth or the puerperium": 18,
|
57 |
+
"sleep-wake disorders": 19
|
58 |
+
},
|
59 |
+
"layer_norm_eps": 1e-12,
|
60 |
+
"max_length": 192,
|
61 |
+
"max_position_embeddings": 512,
|
62 |
+
"model_type": "bert",
|
63 |
+
"num_attention_heads": 12,
|
64 |
+
"num_hidden_layers": 12,
|
65 |
+
"pad_token_id": 0,
|
66 |
+
"padding": "max_length",
|
67 |
+
"position_embedding_type": "absolute",
|
68 |
+
"problem_type": "single_label_classification",
|
69 |
+
"torch_dtype": "float32",
|
70 |
+
"transformers_version": "4.15.0",
|
71 |
+
"type_vocab_size": 2,
|
72 |
+
"use_cache": true,
|
73 |
+
"vocab_size": 30522
|
74 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:812c05eb089973392ee254a4eb9fcbf423ce3a71754f96e9567195ad8ef8308d
|
3 |
+
size 438074605
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f0de5513b968cd54c276dc2108f0e0944658da89ab9290db3190a1552155db2d
|
3 |
+
size 5920
|
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": true, "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
|
|