abhishek HF staff commited on
Commit
cb26734
1 Parent(s): 0d9e825

Commit From AutoNLP

Browse files
.gitattributes CHANGED
@@ -15,3 +15,5 @@
15
  *.pt filter=lfs diff=lfs merge=lfs -text
16
  *.pth filter=lfs diff=lfs merge=lfs -text
17
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
15
  *.pt filter=lfs diff=lfs merge=lfs -text
16
  *.pth filter=lfs diff=lfs merge=lfs -text
17
  *tfevents* filter=lfs diff=lfs merge=lfs -text
18
+ *.pkl filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: it
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - mgrella/autonlp-data-bank-transaction-classification
8
+ ---
9
+
10
+ # Model Trained Using AutoNLP
11
+
12
+ - Problem type: Multi-class Classification
13
+ - Model ID: 5521155
14
+
15
+ ## Validation Metrics
16
+
17
+ - Loss: 1.3173143863677979
18
+ - Accuracy: 0.8220706757594545
19
+ - Macro F1: 0.5713688384455807
20
+ - Micro F1: 0.8220706757594544
21
+ - Weighted F1: 0.8217158913702755
22
+ - Macro Precision: 0.6064387992817253
23
+ - Micro Precision: 0.8220706757594545
24
+ - Weighted Precision: 0.8491515834140735
25
+ - Macro Recall: 0.5873349311175117
26
+ - Micro Recall: 0.8220706757594545
27
+ - Weighted Recall: 0.8220706757594545
28
+
29
+
30
+ ## Usage
31
+
32
+ You can use cURL to access this model:
33
+
34
+ ```
35
+ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/mgrella/autonlp-bank-transaction-classification-5521155
36
+ ```
37
+
38
+ Or Python API:
39
+
40
+ ```
41
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
42
+
43
+ model = AutoModelForSequenceClassification.from_pretrained("mgrella/autonlp-bank-transaction-classification-5521155", use_auth_token=True)
44
+
45
+ tokenizer = AutoTokenizer.from_pretrained("mgrella/autonlp-bank-transaction-classification-5521155", use_auth_token=True)
46
+
47
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
48
+
49
+ outputs = model(**inputs)
50
+ ```
config.json ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 76,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Category.BILLS_SUBSCRIPTIONS_BILLS",
14
+ "1": "Category.BILLS_SUBSCRIPTIONS_INTERNET_PHONE",
15
+ "2": "Category.BILLS_SUBSCRIPTIONS_OTHER",
16
+ "3": "Category.BILLS_SUBSCRIPTIONS_SUBSCRIPTIONS",
17
+ "4": "Category.CREDIT_CARDS_CREDIT_CARDS",
18
+ "5": "Category.EATING_OUT_COFFEE_SHOPS",
19
+ "6": "Category.EATING_OUT_OTHER",
20
+ "7": "Category.EATING_OUT_RESTAURANTS",
21
+ "8": "Category.EATING_OUT_TAKEAWAY_RESTAURANTS",
22
+ "9": "Category.HEALTH_WELLNESS_AID_EXPENSES",
23
+ "10": "Category.HEALTH_WELLNESS_DRUGS",
24
+ "11": "Category.HEALTH_WELLNESS_GYMS",
25
+ "12": "Category.HEALTH_WELLNESS_MEDICAL_EXPENSES",
26
+ "13": "Category.HEALTH_WELLNESS_OTHER",
27
+ "14": "Category.HEALTH_WELLNESS_WELLNESS_RELAX",
28
+ "15": "Category.HOUSING_FAMILY_APPLIANCES",
29
+ "16": "Category.HOUSING_FAMILY_CHILDHOOD",
30
+ "17": "Category.HOUSING_FAMILY_FURNITURE",
31
+ "18": "Category.HOUSING_FAMILY_GROCERIES",
32
+ "19": "Category.HOUSING_FAMILY_INSURANCES",
33
+ "20": "Category.HOUSING_FAMILY_MAINTENANCE_RENOVATION",
34
+ "21": "Category.HOUSING_FAMILY_OTHER",
35
+ "22": "Category.HOUSING_FAMILY_RENTS",
36
+ "23": "Category.HOUSING_FAMILY_SERVANTS",
37
+ "24": "Category.HOUSING_FAMILY_VETERINARY",
38
+ "25": "Category.LEISURE_BOOKS",
39
+ "26": "Category.LEISURE_CINEMA",
40
+ "27": "Category.LEISURE_CLUB_ASSOCIATIONS",
41
+ "28": "Category.LEISURE_GAMBLING",
42
+ "29": "Category.LEISURE_MAGAZINES_NEWSPAPERS",
43
+ "30": "Category.LEISURE_MOVIES_MUSICS",
44
+ "31": "Category.LEISURE_OTHER",
45
+ "32": "Category.LEISURE_SPORT_EVENTS",
46
+ "33": "Category.LEISURE_THEATERS_CONCERTS",
47
+ "34": "Category.LEISURE_VIDEOGAMES",
48
+ "35": "Category.MORTGAGES_LOANS_LOANS",
49
+ "36": "Category.MORTGAGES_LOANS_MORTGAGES",
50
+ "37": "Category.OTHER_CASH",
51
+ "38": "Category.OTHER_CHECKS",
52
+ "39": "Category.OTHER_OTHER",
53
+ "40": "Category.PROFITS_PROFITS",
54
+ "41": "Category.SHOPPING_ACCESSORIZE",
55
+ "42": "Category.SHOPPING_CLOTHING",
56
+ "43": "Category.SHOPPING_FOOTWEAR",
57
+ "44": "Category.SHOPPING_HI_TECH",
58
+ "45": "Category.SHOPPING_OTHER",
59
+ "46": "Category.SHOPPING_SPORT_ARTICLES",
60
+ "47": "Category.TAXES_SERVICES_BANK_FEES",
61
+ "48": "Category.TAXES_SERVICES_DEFAULT_PAYMENTS",
62
+ "49": "Category.TAXES_SERVICES_MONEY_ORDERS",
63
+ "50": "Category.TAXES_SERVICES_OTHER",
64
+ "51": "Category.TAXES_SERVICES_PROFESSIONAL_ACTIVITY",
65
+ "52": "Category.TAXES_SERVICES_PROFIT_DEDUCTION",
66
+ "53": "Category.TAXES_SERVICES_TAXES",
67
+ "54": "Category.TRANSFERS_BANK_TRANSFERS",
68
+ "55": "Category.TRANSFERS_GIFTS_DONATIONS",
69
+ "56": "Category.TRANSFERS_INVESTMENTS",
70
+ "57": "Category.TRANSFERS_OTHER",
71
+ "58": "Category.TRANSFERS_REFUNDS",
72
+ "59": "Category.TRANSFERS_RENT_INCOMES",
73
+ "60": "Category.TRANSFERS_SAVINGS",
74
+ "61": "Category.TRAVELS_TRANSPORTATION_BUSES",
75
+ "62": "Category.TRAVELS_TRANSPORTATION_CAR_RENTAL",
76
+ "63": "Category.TRAVELS_TRANSPORTATION_FLIGHTS",
77
+ "64": "Category.TRAVELS_TRANSPORTATION_FUEL",
78
+ "65": "Category.TRAVELS_TRANSPORTATION_HOTELS",
79
+ "66": "Category.TRAVELS_TRANSPORTATION_OTHER",
80
+ "67": "Category.TRAVELS_TRANSPORTATION_PARKING_URBAN_TRANSPORTS",
81
+ "68": "Category.TRAVELS_TRANSPORTATION_TAXIS",
82
+ "69": "Category.TRAVELS_TRANSPORTATION_TOLLS",
83
+ "70": "Category.TRAVELS_TRANSPORTATION_TRAINS",
84
+ "71": "Category.TRAVELS_TRANSPORTATION_TRAVELS_HOLIDAYS",
85
+ "72": "Category.TRAVELS_TRANSPORTATION_VEHICLE_MAINTENANCE",
86
+ "73": "Category.WAGES_PENSION",
87
+ "74": "Category.WAGES_PROFESSIONAL_COMPENSATION",
88
+ "75": "Category.WAGES_SALARY"
89
+ },
90
+ "initializer_range": 0.02,
91
+ "intermediate_size": 3072,
92
+ "label2id": {
93
+ "Category.BILLS_SUBSCRIPTIONS_BILLS": 0,
94
+ "Category.BILLS_SUBSCRIPTIONS_INTERNET_PHONE": 1,
95
+ "Category.BILLS_SUBSCRIPTIONS_OTHER": 2,
96
+ "Category.BILLS_SUBSCRIPTIONS_SUBSCRIPTIONS": 3,
97
+ "Category.CREDIT_CARDS_CREDIT_CARDS": 4,
98
+ "Category.EATING_OUT_COFFEE_SHOPS": 5,
99
+ "Category.EATING_OUT_OTHER": 6,
100
+ "Category.EATING_OUT_RESTAURANTS": 7,
101
+ "Category.EATING_OUT_TAKEAWAY_RESTAURANTS": 8,
102
+ "Category.HEALTH_WELLNESS_AID_EXPENSES": 9,
103
+ "Category.HEALTH_WELLNESS_DRUGS": 10,
104
+ "Category.HEALTH_WELLNESS_GYMS": 11,
105
+ "Category.HEALTH_WELLNESS_MEDICAL_EXPENSES": 12,
106
+ "Category.HEALTH_WELLNESS_OTHER": 13,
107
+ "Category.HEALTH_WELLNESS_WELLNESS_RELAX": 14,
108
+ "Category.HOUSING_FAMILY_APPLIANCES": 15,
109
+ "Category.HOUSING_FAMILY_CHILDHOOD": 16,
110
+ "Category.HOUSING_FAMILY_FURNITURE": 17,
111
+ "Category.HOUSING_FAMILY_GROCERIES": 18,
112
+ "Category.HOUSING_FAMILY_INSURANCES": 19,
113
+ "Category.HOUSING_FAMILY_MAINTENANCE_RENOVATION": 20,
114
+ "Category.HOUSING_FAMILY_OTHER": 21,
115
+ "Category.HOUSING_FAMILY_RENTS": 22,
116
+ "Category.HOUSING_FAMILY_SERVANTS": 23,
117
+ "Category.HOUSING_FAMILY_VETERINARY": 24,
118
+ "Category.LEISURE_BOOKS": 25,
119
+ "Category.LEISURE_CINEMA": 26,
120
+ "Category.LEISURE_CLUB_ASSOCIATIONS": 27,
121
+ "Category.LEISURE_GAMBLING": 28,
122
+ "Category.LEISURE_MAGAZINES_NEWSPAPERS": 29,
123
+ "Category.LEISURE_MOVIES_MUSICS": 30,
124
+ "Category.LEISURE_OTHER": 31,
125
+ "Category.LEISURE_SPORT_EVENTS": 32,
126
+ "Category.LEISURE_THEATERS_CONCERTS": 33,
127
+ "Category.LEISURE_VIDEOGAMES": 34,
128
+ "Category.MORTGAGES_LOANS_LOANS": 35,
129
+ "Category.MORTGAGES_LOANS_MORTGAGES": 36,
130
+ "Category.OTHER_CASH": 37,
131
+ "Category.OTHER_CHECKS": 38,
132
+ "Category.OTHER_OTHER": 39,
133
+ "Category.PROFITS_PROFITS": 40,
134
+ "Category.SHOPPING_ACCESSORIZE": 41,
135
+ "Category.SHOPPING_CLOTHING": 42,
136
+ "Category.SHOPPING_FOOTWEAR": 43,
137
+ "Category.SHOPPING_HI_TECH": 44,
138
+ "Category.SHOPPING_OTHER": 45,
139
+ "Category.SHOPPING_SPORT_ARTICLES": 46,
140
+ "Category.TAXES_SERVICES_BANK_FEES": 47,
141
+ "Category.TAXES_SERVICES_DEFAULT_PAYMENTS": 48,
142
+ "Category.TAXES_SERVICES_MONEY_ORDERS": 49,
143
+ "Category.TAXES_SERVICES_OTHER": 50,
144
+ "Category.TAXES_SERVICES_PROFESSIONAL_ACTIVITY": 51,
145
+ "Category.TAXES_SERVICES_PROFIT_DEDUCTION": 52,
146
+ "Category.TAXES_SERVICES_TAXES": 53,
147
+ "Category.TRANSFERS_BANK_TRANSFERS": 54,
148
+ "Category.TRANSFERS_GIFTS_DONATIONS": 55,
149
+ "Category.TRANSFERS_INVESTMENTS": 56,
150
+ "Category.TRANSFERS_OTHER": 57,
151
+ "Category.TRANSFERS_REFUNDS": 58,
152
+ "Category.TRANSFERS_RENT_INCOMES": 59,
153
+ "Category.TRANSFERS_SAVINGS": 60,
154
+ "Category.TRAVELS_TRANSPORTATION_BUSES": 61,
155
+ "Category.TRAVELS_TRANSPORTATION_CAR_RENTAL": 62,
156
+ "Category.TRAVELS_TRANSPORTATION_FLIGHTS": 63,
157
+ "Category.TRAVELS_TRANSPORTATION_FUEL": 64,
158
+ "Category.TRAVELS_TRANSPORTATION_HOTELS": 65,
159
+ "Category.TRAVELS_TRANSPORTATION_OTHER": 66,
160
+ "Category.TRAVELS_TRANSPORTATION_PARKING_URBAN_TRANSPORTS": 67,
161
+ "Category.TRAVELS_TRANSPORTATION_TAXIS": 68,
162
+ "Category.TRAVELS_TRANSPORTATION_TOLLS": 69,
163
+ "Category.TRAVELS_TRANSPORTATION_TRAINS": 70,
164
+ "Category.TRAVELS_TRANSPORTATION_TRAVELS_HOLIDAYS": 71,
165
+ "Category.TRAVELS_TRANSPORTATION_VEHICLE_MAINTENANCE": 72,
166
+ "Category.WAGES_PENSION": 73,
167
+ "Category.WAGES_PROFESSIONAL_COMPENSATION": 74,
168
+ "Category.WAGES_SALARY": 75
169
+ },
170
+ "layer_norm_eps": 1e-12,
171
+ "max_length": 128,
172
+ "max_position_embeddings": 512,
173
+ "model_type": "bert",
174
+ "num_attention_heads": 12,
175
+ "num_hidden_layers": 12,
176
+ "pad_token_id": 0,
177
+ "padding": "max_length",
178
+ "position_embedding_type": "absolute",
179
+ "problem_type": "single_label_classification",
180
+ "transformers_version": "4.8.0",
181
+ "type_vocab_size": 2,
182
+ "use_cache": true,
183
+ "vocab_size": 31102
184
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b92cfafbd6c395ed369093d0ce7b245ef31cea49e5530c4498404649d9126520
3
+ size 440028589
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7325f0307f603c09f4754ea890ac4f88c6415bdc269046f1a697bc5d49fb7e69
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, "max_len": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
vocab.txt ADDED
The diff for this file is too large to render. See raw diff