Commit From AutoTrain
Browse files- .gitattributes +2 -0
- README.md +52 -0
- config.json +52 -0
- pytorch_model.bin +3 -0
- sample_input.pkl +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
.gitattributes
CHANGED
@@ -26,3 +26,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
26 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
27 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
28 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
26 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
27 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
28 |
*tfevents* 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: ja
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- jurader/autotrain-data-livedoor_news
|
8 |
+
co2_eq_emissions: 0.02886635131127639
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 732022289
|
15 |
+
- CO2 Emissions (in grams): 0.02886635131127639
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 0.19849611818790436
|
20 |
+
- Accuracy: 0.9471186440677966
|
21 |
+
- Macro F1: 0.9441816841379956
|
22 |
+
- Micro F1: 0.9471186440677966
|
23 |
+
- Weighted F1: 0.9470801715002611
|
24 |
+
- Macro Precision: 0.945983665608131
|
25 |
+
- Micro Precision: 0.9471186440677966
|
26 |
+
- Weighted Precision: 0.9475574732458715
|
27 |
+
- Macro Recall: 0.9429694962141204
|
28 |
+
- Micro Recall: 0.9471186440677966
|
29 |
+
- Weighted Recall: 0.9471186440677966
|
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/jurader/autotrain-livedoor_news-732022289
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("jurader/autotrain-livedoor_news-732022289", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("jurader/autotrain-livedoor_news-732022289", 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,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 9,
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "dokujo-tsushin",
|
14 |
+
"1": "it-life-hack",
|
15 |
+
"2": "kaden-channel",
|
16 |
+
"3": "livedoor-homme",
|
17 |
+
"4": "movie-enter",
|
18 |
+
"5": "peachy",
|
19 |
+
"6": "smax",
|
20 |
+
"7": "sports-watch",
|
21 |
+
"8": "topic-news"
|
22 |
+
},
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 3072,
|
25 |
+
"label2id": {
|
26 |
+
"dokujo-tsushin": 0,
|
27 |
+
"it-life-hack": 1,
|
28 |
+
"kaden-channel": 2,
|
29 |
+
"livedoor-homme": 3,
|
30 |
+
"movie-enter": 4,
|
31 |
+
"peachy": 5,
|
32 |
+
"smax": 6,
|
33 |
+
"sports-watch": 7,
|
34 |
+
"topic-news": 8
|
35 |
+
},
|
36 |
+
"layer_norm_eps": 1e-12,
|
37 |
+
"max_length": 128,
|
38 |
+
"max_position_embeddings": 512,
|
39 |
+
"model_type": "bert",
|
40 |
+
"num_attention_heads": 12,
|
41 |
+
"num_hidden_layers": 12,
|
42 |
+
"pad_token_id": 0,
|
43 |
+
"padding": "max_length",
|
44 |
+
"position_embedding_type": "absolute",
|
45 |
+
"problem_type": "single_label_classification",
|
46 |
+
"tokenizer_class": "BertJapaneseTokenizer",
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.15.0",
|
49 |
+
"type_vocab_size": 2,
|
50 |
+
"use_cache": true,
|
51 |
+
"vocab_size": 32768
|
52 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac05c3d4a5272015827e0d6a1fd6d3d0f70731027ea8d85a4555187d02678a2d
|
3 |
+
size 444940461
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47fe20304d90b955a1ebcbd82ff8d13ca344912eea7151556d3ca40696ca8993
|
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_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "do_lower_case": false, "do_word_tokenize": true, "do_subword_tokenize": true, "word_tokenizer_type": "mecab", "subword_tokenizer_type": "wordpiece", "never_split": null, "mecab_kwargs": {"mecab_dic": "unidic_lite"}, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "AutoTrain", "tokenizer_class": "BertJapaneseTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|