system HF Staff commited on
Commit
3c8fbe0
·
1 Parent(s): 0a8fa0d

Commit From AutoTrain

Browse files
.gitattributes CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
36
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - text-classification
5
+ language:
6
+ - en
7
+ widget:
8
+ - text: "I love AutoTrain"
9
+ datasets:
10
+ - Showroom/autotrain-data-beauty_categories
11
+ co2_eq_emissions:
12
+ emissions: 0.4401601303255541
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 63190135345
19
+ - CO2 Emissions (in grams): 0.4402
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.745
24
+ - Accuracy: 0.829
25
+ - Macro F1: 0.550
26
+ - Micro F1: 0.829
27
+ - Weighted F1: 0.815
28
+ - Macro Precision: 0.580
29
+ - Micro Precision: 0.829
30
+ - Weighted Precision: 0.811
31
+ - Macro Recall: 0.543
32
+ - Micro Recall: 0.829
33
+ - Weighted Recall: 0.829
34
+
35
+
36
+ ## Usage
37
+
38
+ You can use cURL to access this model:
39
+
40
+ ```
41
+ $ 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/Showroom/autotrain-beauty_categories-63190135345
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("Showroom/autotrain-beauty_categories-63190135345", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("Showroom/autotrain-beauty_categories-63190135345", use_auth_token=True)
52
+
53
+ inputs = tokenizer("I love AutoTrain", return_tensors="pt")
54
+
55
+ outputs = model(**inputs)
56
+ ```
config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 21,
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": "acne & blemish solutions",
15
+ "1": "anti-aging products",
16
+ "2": "aromatherapy",
17
+ "3": "bath & body",
18
+ "4": "essential oils",
19
+ "5": "eye care",
20
+ "6": "face masks & treatments",
21
+ "7": "fragrances",
22
+ "8": "hair removal products",
23
+ "9": "haircare",
24
+ "10": "hand & foot care",
25
+ "11": "lip care",
26
+ "12": "makeup",
27
+ "13": "maternity & postnatal care",
28
+ "14": "men's grooming",
29
+ "15": "nail care",
30
+ "16": "natural & organic products",
31
+ "17": "other",
32
+ "18": "skincare",
33
+ "19": "spa & massage",
34
+ "20": "sunscreen & tanning products"
35
+ },
36
+ "initializer_range": 0.02,
37
+ "intermediate_size": 3072,
38
+ "label2id": {
39
+ "acne & blemish solutions": 0,
40
+ "anti-aging products": 1,
41
+ "aromatherapy": 2,
42
+ "bath & body": 3,
43
+ "essential oils": 4,
44
+ "eye care": 5,
45
+ "face masks & treatments": 6,
46
+ "fragrances": 7,
47
+ "hair removal products": 8,
48
+ "haircare": 9,
49
+ "hand & foot care": 10,
50
+ "lip care": 11,
51
+ "makeup": 12,
52
+ "maternity & postnatal care": 13,
53
+ "men's grooming": 14,
54
+ "nail care": 15,
55
+ "natural & organic products": 16,
56
+ "other": 17,
57
+ "skincare": 18,
58
+ "spa & massage": 19,
59
+ "sunscreen & tanning products": 20
60
+ },
61
+ "layer_norm_eps": 1e-12,
62
+ "max_length": 384,
63
+ "max_position_embeddings": 512,
64
+ "model_type": "bert",
65
+ "num_attention_heads": 12,
66
+ "num_hidden_layers": 12,
67
+ "pad_token_id": 0,
68
+ "padding": "max_length",
69
+ "position_embedding_type": "absolute",
70
+ "problem_type": "single_label_classification",
71
+ "torch_dtype": "float32",
72
+ "transformers_version": "4.29.2",
73
+ "type_vocab_size": 2,
74
+ "use_cache": true,
75
+ "vocab_size": 30522
76
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59e1764b9eae0bd1bb000ccb0a9eb2497336f431344500c808d3cff722e18b2a
3
+ size 438021276
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6794f3f216a1eaac0adf87b6713f92f128f459190e51d182ff570893f0be3efa
3
+ size 438066357
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:881fa1cae69b9dcb65a3a39328e1edde016ea17b23aab92781ab403f30d09d45
3
+ size 711661
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff