Push model using huggingface_hub.
Browse files- README.md +65 -65
- config_setfit.json +2 -2
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -9,10 +9,10 @@ metrics:
|
|
9 |
- accuracy
|
10 |
widget:
|
11 |
- text: frais douane import vehicule usa carte usd commission
|
12 |
-
- text:
|
13 |
-
- text:
|
14 |
-
- text: achat
|
15 |
-
- text:
|
16 |
pipeline_tag: text-classification
|
17 |
inference: true
|
18 |
model-index:
|
@@ -27,7 +27,7 @@ model-index:
|
|
27 |
split: test
|
28 |
metrics:
|
29 |
- type: accuracy
|
30 |
-
value: 0.
|
31 |
name: Accuracy
|
32 |
---
|
33 |
|
@@ -59,59 +59,59 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
59 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
60 |
|
61 |
### Model Labels
|
62 |
-
| Label | Examples
|
63 |
-
|
64 |
-
| Shopping / electronics & multimedia | <ul><li>'achat
|
65 |
-
| Other / kids | <ul><li>'
|
66 |
-
| Bank services / other | <ul><li>'paiement frais demande rib iban supplémentaires carte'</li><li>'frais
|
67 |
-
| Housing / rent | <ul><li>'paiement loyer
|
68 |
-
| Transportation / other | <ul><li>'
|
69 |
-
| Bank services / transfers | <ul><li>'
|
70 |
-
| Investment / retirement & savings | <ul><li>'
|
71 |
-
| Other / taxes | <ul><li>'contribution
|
72 |
-
| Healthy & Beauty / other | <ul><li>'
|
73 |
-
| Investment / securities | <ul><li>'
|
74 |
-
| Housing / other | <ul><li>'
|
75 |
-
| Housing / house loan | <ul><li>'
|
76 |
-
| Housing / utilities & bills | <ul><li>'prlv sepa
|
77 |
-
| Bank services / general fees | <ul><li>'frais
|
78 |
-
| Leisure & Entertainment / culture & events | <ul><li>'
|
79 |
-
| Transportation / taxi & carpool | <ul><li>'prlv sepa
|
80 |
-
| Shopping / other | <ul><li>'
|
81 |
-
| Recurrent Payments / loans | <ul><li>'retrait auto emma pret familial emmaprt carte'</li><li>'
|
82 |
-
| Healthy & Beauty / doctor fees | <ul><li>'
|
83 |
-
| Bank services / withdrawal | <ul><li>'retrait dab banque express toulouse carte fr'</li><li>'retrait dab
|
84 |
-
| Other / other | <ul><li>'
|
85 |
-
| Healthy & Beauty / pharmacy | <ul><li>'
|
86 |
-
| Transportation / fuel | <ul><li>'
|
87 |
-
| Shopping / sporting goods | <ul><li>'
|
88 |
-
| Food & Drinks / groceries | <ul><li>'
|
89 |
-
| Other / pets | <ul><li>'
|
90 |
-
| Investment / real estate | <ul><li>'
|
91 |
-
| Shopping / clothing | <ul><li>'achat
|
92 |
-
| Shopping / housing equipment | <ul><li>'
|
93 |
-
| Transportation / maitenance | <ul><li>'facture
|
94 |
-
| Recurrent Payments / other | <ul><li>'
|
95 |
-
| Recurrent Payments / insurance | <ul><li>'prelevement sepa assurance multirisque pro mma'</li><li>'prélèvement mensuel assurance collective cnp'</li></ul>
|
96 |
-
| Healthy & Beauty / veterinary | <ul><li>'
|
97 |
-
| Transportation / public transportation | <ul><li>'achat titres v ville de lille carte'</li><li>'
|
98 |
-
| Healthy & Beauty / beauty & self-care | <ul><li>'
|
99 |
-
| Leisure & Entertainment / other | <ul><li>'
|
100 |
-
| Food & Drinks / eating out | <ul><li>'facture carte du
|
101 |
-
| Housing / services & maintenance | <ul><li>'
|
102 |
-
| Leisure & Entertainment / travel | <ul><li>'prlv sepa eurostar'</li><li>'
|
103 |
-
| Leisure & Entertainment / sports & hobbies | <ul><li>'paiement en ligne du
|
104 |
-
| Investment / other | <ul><li>'
|
105 |
-
| Transportation / car loan & leasing | <ul><li>'
|
106 |
-
| Recurrent Payments / subscription | <ul><li>'
|
107 |
-
| Food & Drinks / other | <ul><li>'
|
108 |
|
109 |
## Evaluation
|
110 |
|
111 |
### Metrics
|
112 |
| Label | Accuracy |
|
113 |
|:--------|:---------|
|
114 |
-
| **all** | 0.
|
115 |
|
116 |
## Uses
|
117 |
|
@@ -131,7 +131,7 @@ from setfit import SetFitModel
|
|
131 |
# Download from the 🤗 Hub
|
132 |
model = SetFitModel.from_pretrained("HEN10/setfit-particular-transaction-solon-embeddings-labels-large-kaggle-automatisation-v1")
|
133 |
# Run inference
|
134 |
-
preds = model("achat
|
135 |
```
|
136 |
|
137 |
<!--
|
@@ -163,7 +163,7 @@ preds = model("achat le monde des oiseaux carte")
|
|
163 |
### Training Set Metrics
|
164 |
| Training set | Min | Median | Max |
|
165 |
|:-------------|:----|:-------|:----|
|
166 |
-
| Word count | 3 | 6.
|
167 |
|
168 |
| Label | Training Sample Count |
|
169 |
|:-------------------------------------------|:----------------------|
|
@@ -232,23 +232,23 @@ preds = model("achat le monde des oiseaux carte")
|
|
232 |
### Training Results
|
233 |
| Epoch | Step | Training Loss | Validation Loss |
|
234 |
|:------:|:----:|:-------------:|:---------------:|
|
235 |
-
| 0.0021 | 1 | 0.
|
236 |
-
| 0.1057 | 50 | 0.
|
237 |
-
| 0.2114 | 100 | 0.
|
238 |
-
| 0.3171 | 150 | 0.
|
239 |
-
| 0.4228 | 200 | 0.
|
240 |
-
| 0.5285 | 250 | 0.
|
241 |
-
| 0.6342 | 300 | 0.
|
242 |
-
| 0.7400 | 350 | 0.
|
243 |
-
| 0.8457 | 400 | 0.
|
244 |
-
| 0.9514 | 450 | 0.
|
245 |
|
246 |
### Framework Versions
|
247 |
- Python: 3.10.13
|
248 |
- SetFit: 1.0.3
|
249 |
- Sentence Transformers: 2.6.1
|
250 |
- Transformers: 4.39.3
|
251 |
-
- PyTorch: 2.1.2
|
252 |
- Datasets: 2.17.0
|
253 |
- Tokenizers: 0.15.2
|
254 |
|
|
|
9 |
- accuracy
|
10 |
widget:
|
11 |
- text: frais douane import vehicule usa carte usd commission
|
12 |
+
- text: prlv sepa soins veterinaires urgences
|
13 |
+
- text: virement recu vente local commercial nice carte
|
14 |
+
- text: achat académie dressage canin carte
|
15 |
+
- text: facture carte du adobe creative cloud photo carte
|
16 |
pipeline_tag: text-classification
|
17 |
inference: true
|
18 |
model-index:
|
|
|
27 |
split: test
|
28 |
metrics:
|
29 |
- type: accuracy
|
30 |
+
value: 0.25
|
31 |
name: Accuracy
|
32 |
---
|
33 |
|
|
|
59 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
60 |
|
61 |
### Model Labels
|
62 |
+
| Label | Examples |
|
63 |
+
|:-------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------|
|
64 |
+
| Shopping / electronics & multimedia | <ul><li>'achat dji technology carte chn'</li><li>'facture carte samsung paris opera carte'</li></ul> |
|
65 |
+
| Other / kids | <ul><li>'virement sortant cadeau anniversaire neveu'</li><li>'paiement carte lunapark family fun carte'</li></ul> |
|
66 |
+
| Bank services / other | <ul><li>'paiement frais demande rib iban supplémentaires carte'</li><li>'frais changement de pin carte'</li></ul> |
|
67 |
+
| Housing / rent | <ul><li>'paiement loyer rue des oliviers carte'</li><li>'sepa regl loyer resid les ormeaux carte'</li></ul> |
|
68 |
+
| Transportation / other | <ul><li>'parking aeroport charles de gaulle carte'</li><li>'frais douane import vehicule usa carte usd commission'</li></ul> |
|
69 |
+
| Bank services / transfers | <ul><li>'transfer location vacances famille roux carte'</li><li>'virement sepa entrant de loyer mars carte'</li></ul> |
|
70 |
+
| Investment / retirement & savings | <ul><li>'alimentation plan epargne logement carte'</li><li>'allocation retraite complémentaire carte'</li></ul> |
|
71 |
+
| Other / taxes | <ul><li>'contribution economique territoriale siret frcte'</li><li>'taxe apprentissage siret frapp'</li></ul> |
|
72 |
+
| Healthy & Beauty / other | <ul><li>'adhésion club randonnée plein air'</li><li>'achat en ligne produits aromatherapie naturesence carte'</li></ul> |
|
73 |
+
| Investment / securities | <ul><li>'investissement silver etf carte silver oz'</li><li>'transaction actions netflix carte usd'</li></ul> |
|
74 |
+
| Housing / other | <ul><li>'virement recu du remboursement depot de garantie'</li><li>'prlv sepa du alarmes securitas direct'</li></ul> |
|
75 |
+
| Housing / house loan | <ul><li>'solde emprunt habitat fortuneo pret'</li><li>'prelevement sepa pret habitation hsbc france'</li></ul> |
|
76 |
+
| Housing / utilities & bills | <ul><li>'prlv sepa grdf'</li><li>'prlv sepa total direct energie elec'</li></ul> |
|
77 |
+
| Bank services / general fees | <ul><li>'frais opposition cheque perdu'</li><li>'frais de gestion portefeuille titres'</li></ul> |
|
78 |
+
| Leisure & Entertainment / culture & events | <ul><li>'prlv sepa cinema cgr lille'</li><li>'achat carte festival rock en seine carte'</li></ul> |
|
79 |
+
| Transportation / taxi & carpool | <ul><li>'prlv sepa blablacar carte'</li><li>'facture carte du kakao taxi seoul carte kor krw commission'</li></ul> |
|
80 |
+
| Shopping / other | <ul><li>'achat coffrets cadeaux pandore carte'</li><li>'facture carte du magasin l unique montpellier carte'</li></ul> |
|
81 |
+
| Recurrent Payments / loans | <ul><li>'retrait auto emma pret familial emmaprt carte'</li><li>'paiement échéance axa pret professionnel carte'</li></ul> |
|
82 |
+
| Healthy & Beauty / doctor fees | <ul><li>'facture carte du dr pierre neurologue carte'</li><li>'facture carte du dr marchand orthopediste carte'</li></ul> |
|
83 |
+
| Bank services / withdrawal | <ul><li>'retrait dab banque express toulouse carte fr'</li><li>'retrait dab ecobanque lyon carte fr'</li></ul> |
|
84 |
+
| Other / other | <ul><li>'facture carte du cinema rexy paris carte'</li><li>'don association sos villages enfants'</li></ul> |
|
85 |
+
| Healthy & Beauty / pharmacy | <ul><li>'prlv sepa pharmacie azureech'</li><li>'debit carte pharmacie grand ciel carte'</li></ul> |
|
86 |
+
| Transportation / fuel | <ul><li>'facture carte du total energies paris carte'</li><li>'prlv sepa du q bruxelles carte bel'</li></ul> |
|
87 |
+
| Shopping / sporting goods | <ul><li>'pmt carte fitnessboutique lyon carte'</li><li>'paiement carte go sport montpellier carte'</li></ul> |
|
88 |
+
| Food & Drinks / groceries | <ul><li>'facture carte du magasin asiatique lee carte'</li><li>'debit charcuterie gourmets carte'</li></ul> |
|
89 |
+
| Other / pets | <ul><li>'prlv sepa soins veterinaires urgences'</li><li>'achat académie dressage canin carte'</li></ul> |
|
90 |
+
| Investment / real estate | <ul><li>'virement sortant investissement immobilier crowdfunding carte'</li><li>'virement recu vente local commercial nice carte'</li></ul> |
|
91 |
+
| Shopping / clothing | <ul><li>'achat decathlon carte'</li><li>'achat carte nike store carte usa usd commission'</li></ul> |
|
92 |
+
| Shopping / housing equipment | <ul><li>'facture carte du conforama montpellier carte'</li><li>'paiement par carte ambiances matieres marseille carte'</li></ul> |
|
93 |
+
| Transportation / maitenance | <ul><li>'facture du vitres teintees luxe bordeaux carte'</li><li>'debit du garage turbo moteurs strasbourg carte remise a neuf'</li></ul> |
|
94 |
+
| Recurrent Payments / other | <ul><li>'abonnement annuel magazine interstellar transaction date'</li><li>'cotisation annuelle club échecs rois et pions date'</li></ul> |
|
95 |
+
| Recurrent Payments / insurance | <ul><li>'prelevement sepa assurance multirisque pro mma'</li><li>'prélèvement mensuel assurance collective cnp'</li></ul> |
|
96 |
+
| Healthy & Beauty / veterinary | <ul><li>'deworming petcare lyon carte'</li><li>'prlv sepa hospital vet duval limoges'</li></ul> |
|
97 |
+
| Transportation / public transportation | <ul><li>'achat titres v ville de lille carte'</li><li>'abonnement tram strasbourg cts carte'</li></ul> |
|
98 |
+
| Healthy & Beauty / beauty & self-care | <ul><li>'prlv sepa abonnement biotyfull box'</li><li>'facture carte du mac cosmetics nice carte'</li></ul> |
|
99 |
+
| Leisure & Entertainment / other | <ul><li>'paiement en ligne du amazon prime video carte usa'</li><li>'facture carte du spotify premium carte usa'</li></ul> |
|
100 |
+
| Food & Drinks / eating out | <ul><li>'facture carte du cafe de flore carte'</li><li>'facture carte du mcdonald s carte usa usd commission'</li></ul> |
|
101 |
+
| Housing / services & maintenance | <ul><li>'prlv sepa electricite generale flash'</li><li>'virement recu soldes tuyauterie moderne'</li></ul> |
|
102 |
+
| Leisure & Entertainment / travel | <ul><li>'prlv sepa eurostar'</li><li>'achat carte hertz location carte usa usd commission'</li></ul> |
|
103 |
+
| Leisure & Entertainment / sports & hobbies | <ul><li>'paiement en ligne du adidas fr carte'</li><li>'facture carte du culture velo lyon carte'</li></ul> |
|
104 |
+
| Investment / other | <ul><li>'souscription part sociale coop biolocal'</li><li>'participation crowdfunding waterclean projet'</li></ul> |
|
105 |
+
| Transportation / car loan & leasing | <ul><li>'virement mensualite bmw x debmwx'</li><li>'prlv sepa dacia lodgy crdit auto'</li></ul> |
|
106 |
+
| Recurrent Payments / subscription | <ul><li>'prlv sepa microsoft office svc carte'</li><li>'facture carte du adobe creative cloud photo carte'</li></ul> |
|
107 |
+
| Food & Drinks / other | <ul><li>'facture carte du café de flore carte'</li><li>'debit carte caviste le grand cru carte'</li></ul> |
|
108 |
|
109 |
## Evaluation
|
110 |
|
111 |
### Metrics
|
112 |
| Label | Accuracy |
|
113 |
|:--------|:---------|
|
114 |
+
| **all** | 0.25 |
|
115 |
|
116 |
## Uses
|
117 |
|
|
|
131 |
# Download from the 🤗 Hub
|
132 |
model = SetFitModel.from_pretrained("HEN10/setfit-particular-transaction-solon-embeddings-labels-large-kaggle-automatisation-v1")
|
133 |
# Run inference
|
134 |
+
preds = model("achat académie dressage canin carte")
|
135 |
```
|
136 |
|
137 |
<!--
|
|
|
163 |
### Training Set Metrics
|
164 |
| Training set | Min | Median | Max |
|
165 |
|:-------------|:----|:-------|:----|
|
166 |
+
| Word count | 3 | 6.0455 | 10 |
|
167 |
|
168 |
| Label | Training Sample Count |
|
169 |
|:-------------------------------------------|:----------------------|
|
|
|
232 |
### Training Results
|
233 |
| Epoch | Step | Training Loss | Validation Loss |
|
234 |
|:------:|:----:|:-------------:|:---------------:|
|
235 |
+
| 0.0021 | 1 | 0.1662 | - |
|
236 |
+
| 0.1057 | 50 | 0.1483 | - |
|
237 |
+
| 0.2114 | 100 | 0.0681 | - |
|
238 |
+
| 0.3171 | 150 | 0.0298 | - |
|
239 |
+
| 0.4228 | 200 | 0.0245 | - |
|
240 |
+
| 0.5285 | 250 | 0.0117 | - |
|
241 |
+
| 0.6342 | 300 | 0.032 | - |
|
242 |
+
| 0.7400 | 350 | 0.0112 | - |
|
243 |
+
| 0.8457 | 400 | 0.0072 | - |
|
244 |
+
| 0.9514 | 450 | 0.0176 | - |
|
245 |
|
246 |
### Framework Versions
|
247 |
- Python: 3.10.13
|
248 |
- SetFit: 1.0.3
|
249 |
- Sentence Transformers: 2.6.1
|
250 |
- Transformers: 4.39.3
|
251 |
+
- PyTorch: 2.1.2
|
252 |
- Datasets: 2.17.0
|
253 |
- Tokenizers: 0.15.2
|
254 |
|
config_setfit.json
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
{
|
2 |
-
"normalize_embeddings": false,
|
3 |
"labels": [
|
4 |
"Housing / rent",
|
5 |
"Housing / house loan",
|
@@ -45,5 +44,6 @@
|
|
45 |
"Other / kids",
|
46 |
"Other / pets",
|
47 |
"Other / other"
|
48 |
-
]
|
|
|
49 |
}
|
|
|
1 |
{
|
|
|
2 |
"labels": [
|
3 |
"Housing / rent",
|
4 |
"Housing / house loan",
|
|
|
44 |
"Other / kids",
|
45 |
"Other / pets",
|
46 |
"Other / other"
|
47 |
+
],
|
48 |
+
"normalize_embeddings": false
|
49 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 133462128
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a56c0ff511916ff3b6b64ea21040db22d57cda9700fd49779f449ee505ca98ee
|
3 |
size 133462128
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 143927
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:021214ccfed83e4f39b2f0fbc202c6a37dbcb57a20c28c560a84d3ed538705c7
|
3 |
size 143927
|