Push model using huggingface_hub.
Browse files- README.md +66 -66
- config_setfit.json +2 -2
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -8,11 +8,11 @@ tags:
|
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
widget:
|
11 |
-
- text:
|
12 |
-
- text:
|
13 |
-
- text:
|
14 |
-
- text:
|
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>'
|
65 |
-
| Other / kids | <ul><li>'
|
66 |
-
| Bank services / other | <ul><li>'paiement frais
|
67 |
-
| Housing / rent | <ul><li>'
|
68 |
-
| Transportation / other | <ul><li>'
|
69 |
-
| Bank services / transfers | <ul><li>'
|
70 |
-
| Investment / retirement & savings | <ul><li>'
|
71 |
-
| Other / taxes | <ul><li>'
|
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 operation non europeenne carte'</li><li>'
|
78 |
-
| Leisure & Entertainment / culture & events | <ul><li>'
|
79 |
-
| Transportation / taxi & carpool | <ul><li>'
|
80 |
-
| Shopping / other | <ul><li>'
|
81 |
-
| Recurrent Payments / loans | <ul><li>'
|
82 |
-
| Healthy & Beauty / doctor fees | <ul><li>'
|
83 |
-
| Bank services / withdrawal | <ul><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>'
|
92 |
-
| Shopping / housing equipment | <ul><li>'paiement par carte
|
93 |
-
| Transportation / maitenance | <ul><li>'facture carte
|
94 |
-
| Recurrent Payments / other | <ul><li>'
|
95 |
-
| Recurrent Payments / insurance | <ul><li>'
|
96 |
-
| Healthy & Beauty / veterinary | <ul><li>'
|
97 |
-
| Transportation / public transportation | <ul><li>'
|
98 |
-
| Healthy & Beauty / beauty & self-care | <ul><li>'facture carte du
|
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>'
|
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 académie dressage canin 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 académie dressage canin 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 |
|
|
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
widget:
|
11 |
+
- text: frais douane import vehicule usa carte usd commission
|
12 |
+
- text: debit automatique assurance chien fido protect
|
13 |
+
- text: facture carte du cabinet architecte plan maison est carte
|
14 |
+
- text: achat le monde des oiseaux carte
|
15 |
+
- text: abonnement mensuel salle de sport life fitness club carte
|
16 |
pipeline_tag: text-classification
|
17 |
inference: true
|
18 |
model-index:
|
|
|
27 |
split: test
|
28 |
metrics:
|
29 |
- type: accuracy
|
30 |
+
value: 0.18181818181818182
|
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 amazon eu s a r l carte lux'</li><li>'retrait achat b h photo carte usa usd commission'</li></ul> |
|
65 |
+
| Other / kids | <ul><li>'paiement carte babyland equipements carte'</li><li>'achat carte couture kids atelier carte'</li></ul> |
|
66 |
+
| Bank services / other | <ul><li>'paiement frais demande rib iban supplémentaires carte'</li><li>'frais emission chequier carte'</li></ul> |
|
67 |
+
| Housing / rent | <ul><li>'paiement loyer maison campagne carte'</li><li>'prlv sepa sarl habitatplus loyer mars carte'</li></ul> |
|
68 |
+
| Transportation / other | <ul><li>'abonnement annual parking municipal villetown carte'</li><li>'frais douane import vehicule usa carte usd commission'</li></ul> |
|
69 |
+
| Bank services / transfers | <ul><li>'reception transfert remboursement prêt amis carte'</li><li>'transfer location vacances famille roux carte'</li></ul> |
|
70 |
+
| Investment / retirement & savings | <ul><li>'investissement fonds de pension carte'</li><li>'souscription sicav monétaire retraite carte'</li></ul> |
|
71 |
+
| Other / taxes | <ul><li>'contribution sociales csg crds securite soc frsso'</li><li>'prelevement impots sur le revenu fiscale fr'</li></ul> |
|
72 |
+
| Healthy & Beauty / other | <ul><li>'achat en ligne produits aromatherapie naturesence carte'</li><li>'session floating therapie apezen carte'</li></ul> |
|
73 |
+
| Investment / securities | <ul><li>'achat obligations tesla carte usd'</li><li>'transaction opcvm european funds carte'</li></ul> |
|
74 |
+
| Housing / other | <ul><li>'facture carte du ikea velizy carte'</li><li>'prlv sepa du alarmes securitas direct'</li></ul> |
|
75 |
+
| Housing / house loan | <ul><li>'prelevement sepa pret habitation hsbc france'</li><li>'remboursement emprunt immobilier caisse d epargne echeance'</li></ul> |
|
76 |
+
| Housing / utilities & bills | <ul><li>'prlv sepa free mobile'</li><li>'prlv sepa total direct energie elec'</li></ul> |
|
77 |
+
| Bank services / general fees | <ul><li>'frais operation non europeenne carte'</li><li>'commission intervention depassement decouvert'</li></ul> |
|
78 |
+
| Leisure & Entertainment / culture & events | <ul><li>'facture carte du opera de paris carte'</li><li>'reservation carte nuit des musees carte'</li></ul> |
|
79 |
+
| Transportation / taxi & carpool | <ul><li>'prlv sepa lyft carte usa usd commission'</li><li>'facture carte du yandex taxi moscow carte rus rub commission'</li></ul> |
|
80 |
+
| Shopping / other | <ul><li>'prlv sepa amzn mktp fr mjk amz com bill lu carte'</li><li>'achat arts et decoration bleneau carte'</li></ul> |
|
81 |
+
| Recurrent Payments / loans | <ul><li>'retrait auto emma pret familial emmaprt carte'</li><li>'virement sortant lcl pret travaux rth'</li></ul> |
|
82 |
+
| Healthy & Beauty / doctor fees | <ul><li>'paiement cabinet kinesitherapie dubois carte'</li><li>'prlv sepa cabinet dermatologie dupont frzzz cdc hjke'</li></ul> |
|
83 |
+
| Bank services / withdrawal | <ul><li>'retrait dab banque express toulouse carte fr'</li><li>'retrait dab banque rapide clermont ferrand carte fr commission'</li></ul> |
|
84 |
+
| Other / other | <ul><li>'achat billets loterie nationale'</li><li>'cotisation associative lumieres de la ville'</li></ul> |
|
85 |
+
| Healthy & Beauty / pharmacy | <ul><li>'paiement pharmacie du parc carte'</li><li>'achat pharmacie du centre ville carte'</li></ul> |
|
86 |
+
| Transportation / fuel | <ul><li>'reglement carbu elf bordeaux carte'</li><li>'prlv automatique station total nantes'</li></ul> |
|
87 |
+
| Shopping / sporting goods | <ul><li>'achat en ligne sport fr carte'</li><li>'achat reebok fitness bordeaux carte'</li></ul> |
|
88 |
+
| Food & Drinks / groceries | <ul><li>'prlv sepa marche local de provence carte'</li><li>'facture carte du magasin asiatique lee carte'</li></ul> |
|
89 |
+
| Other / pets | <ul><li>'debit automatique assurance chien fido protect'</li><li>'achat le monde des oiseaux carte'</li></ul> |
|
90 |
+
| Investment / real estate | <ul><li>'renovation maison nanterre carte'</li><li>'facture carte du cabinet architecte plan maison est carte'</li></ul> |
|
91 |
+
| Shopping / clothing | <ul><li>'achat primark lyon carte'</li><li>'achat zara carte esp'</li></ul> |
|
92 |
+
| Shopping / housing equipment | <ul><li>'paiement par carte decathlon pour camping carte'</li><li>'paiement par carte zara home paris carte'</li></ul> |
|
93 |
+
| Transportation / maitenance | <ul><li>'facture carte batteries et plus marseille carte'</li><li>'prlv sepa atelier mécanique avancée limoges annuelle'</li></ul> |
|
94 |
+
| Recurrent Payments / other | <ul><li>'cotisation annuelle club échecs rois et pions date'</li><li>'souscription mensuelle plateforme éducative kidlearn carte 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>'paiement facture chien veterinaire des lilas carte'</li><li>'soins dentaires cheval equivet clinic strasbourg carte'</li></ul> |
|
97 |
+
| Transportation / public transportation | <ul><li>'achat titres v ville de lille carte'</li><li>'billet rer versailles ratp carte'</li></ul> |
|
98 |
+
| Healthy & Beauty / beauty & self-care | <ul><li>'facture carte du salon manucure instant beaute carte'</li><li>'achat parfumerie senteurs du monde carte'</li></ul> |
|
99 |
+
| Leisure & Entertainment / other | <ul><li>'achat carte du netflix carte'</li><li>'facture carte du hbo max carte usa'</li></ul> |
|
100 |
+
| Food & Drinks / eating out | <ul><li>'facture carte du cafeteria los amigos carte spa'</li><li>'facture carte du le petit cafe carte'</li></ul> |
|
101 |
+
| Housing / services & maintenance | <ul><li>'virement recu soldes tuyauterie moderne'</li><li>'prlv sepa chauffage central bernier'</li></ul> |
|
102 |
+
| Leisure & Entertainment / travel | <ul><li>'prlv sepa eurostar'</li><li>'virement recu airbnb stay paris frzzz date'</li></ul> |
|
103 |
+
| Leisure & Entertainment / sports & hobbies | <ul><li>'paiement en ligne du nike com carte usd commission'</li><li>'achat en magasin du rebel sport carte aud'</li></ul> |
|
104 |
+
| Investment / other | <ul><li>'participation crowdfunding waterclean projet'</li><li>'achat actions ia revolution carte'</li></ul> |
|
105 |
+
| Transportation / car loan & leasing | <ul><li>'prlv sepa dacia lodgy crdit auto'</li><li>'prelevement mensuel mercedes classe a financement frzzzmerce'</li></ul> |
|
106 |
+
| Recurrent Payments / subscription | <ul><li>'facture carte du amazon prime carte'</li><li>'abonnement mensuel salle de sport life fitness club carte'</li></ul> |
|
107 |
+
| Food & Drinks / other | <ul><li>'debit epicerie bio vitanature carte'</li><li>'payment carte salon de thé carte'</li></ul> |
|
108 |
|
109 |
## Evaluation
|
110 |
|
111 |
### Metrics
|
112 |
| Label | Accuracy |
|
113 |
|:--------|:---------|
|
114 |
+
| **all** | 0.1818 |
|
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 le monde des oiseaux carte")
|
135 |
```
|
136 |
|
137 |
<!--
|
|
|
163 |
### Training Set Metrics
|
164 |
| Training set | Min | Median | Max |
|
165 |
|:-------------|:----|:-------|:----|
|
166 |
+
| Word count | 3 | 6.2727 | 11 |
|
167 |
|
168 |
| Label | Training Sample Count |
|
169 |
|:-------------------------------------------|:----------------------|
|
|
|
232 |
### Training Results
|
233 |
| Epoch | Step | Training Loss | Validation Loss |
|
234 |
|:------:|:----:|:-------------:|:---------------:|
|
235 |
+
| 0.0021 | 1 | 0.1221 | - |
|
236 |
+
| 0.1057 | 50 | 0.1337 | - |
|
237 |
+
| 0.2114 | 100 | 0.0617 | - |
|
238 |
+
| 0.3171 | 150 | 0.0397 | - |
|
239 |
+
| 0.4228 | 200 | 0.0377 | - |
|
240 |
+
| 0.5285 | 250 | 0.0133 | - |
|
241 |
+
| 0.6342 | 300 | 0.012 | - |
|
242 |
+
| 0.7400 | 350 | 0.0191 | - |
|
243 |
+
| 0.8457 | 400 | 0.0118 | - |
|
244 |
+
| 0.9514 | 450 | 0.0083 | - |
|
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+cpu
|
252 |
- Datasets: 2.17.0
|
253 |
- Tokenizers: 0.15.2
|
254 |
|
config_setfit.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
|
|
2 |
"labels": [
|
3 |
"Housing / rent",
|
4 |
"Housing / house loan",
|
@@ -44,6 +45,5 @@
|
|
44 |
"Other / kids",
|
45 |
"Other / pets",
|
46 |
"Other / other"
|
47 |
-
]
|
48 |
-
"normalize_embeddings": false
|
49 |
}
|
|
|
1 |
{
|
2 |
+
"normalize_embeddings": false,
|
3 |
"labels": [
|
4 |
"Housing / rent",
|
5 |
"Housing / house loan",
|
|
|
45 |
"Other / kids",
|
46 |
"Other / pets",
|
47 |
"Other / other"
|
48 |
+
]
|
|
|
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:74c5fafebf3e86f2cfd4aa447cd5c41185cee7b2518dd5b6d0755d57035224d7
|
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:0c04e7adc6685d37bf094222c2bbc50bd933398e9acd60c2f3ea18f38baa874f
|
3 |
size 143927
|