Text Classification
setfit
Safetensors
sentence-transformers
xlm-roberta
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use mranonymaz/bol-topic-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use mranonymaz/bol-topic-classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("mranonymaz/bol-topic-classifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use mranonymaz/bol-topic-classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mranonymaz/bol-topic-classifier") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Push model using huggingface_hub.
Browse files- README.md +5 -5
- config_setfit.json +2 -2
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
|
@@ -101,7 +101,7 @@ preds = model("Mijn cadeaubon werkt niet.")
|
|
| 101 |
### Training Set Metrics
|
| 102 |
| Training set | Min | Median | Max |
|
| 103 |
|:-------------|:----|:-------|:----|
|
| 104 |
-
| Word count | 3 | 7.
|
| 105 |
|
| 106 |
| Label | Training Sample Count |
|
| 107 |
|:-----------------|:----------------------|
|
|
@@ -131,10 +131,10 @@ preds = model("Mijn cadeaubon werkt niet.")
|
|
| 131 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 132 |
|:------:|:----:|:-------------:|:---------------:|
|
| 133 |
| 0.0024 | 1 | 0.41 | - |
|
| 134 |
-
| 0.1176 | 50 | 0.
|
| 135 |
-
| 0.2353 | 100 | 0.
|
| 136 |
-
| 0.3529 | 150 | 0.
|
| 137 |
-
| 0.4706 | 200 | 0.
|
| 138 |
| 0.5882 | 250 | 0.0004 | - |
|
| 139 |
| 0.7059 | 300 | 0.0002 | - |
|
| 140 |
| 0.8235 | 350 | 0.0002 | - |
|
|
|
|
| 101 |
### Training Set Metrics
|
| 102 |
| Training set | Min | Median | Max |
|
| 103 |
|:-------------|:----|:-------|:----|
|
| 104 |
+
| Word count | 3 | 7.3579 | 42 |
|
| 105 |
|
| 106 |
| Label | Training Sample Count |
|
| 107 |
|:-----------------|:----------------------|
|
|
|
|
| 131 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 132 |
|:------:|:----:|:-------------:|:---------------:|
|
| 133 |
| 0.0024 | 1 | 0.41 | - |
|
| 134 |
+
| 0.1176 | 50 | 0.2492 | - |
|
| 135 |
+
| 0.2353 | 100 | 0.0523 | - |
|
| 136 |
+
| 0.3529 | 150 | 0.0056 | - |
|
| 137 |
+
| 0.4706 | 200 | 0.0004 | - |
|
| 138 |
| 0.5882 | 250 | 0.0004 | - |
|
| 139 |
| 0.7059 | 300 | 0.0002 | - |
|
| 140 |
| 0.8235 | 350 | 0.0002 | - |
|
config_setfit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"normalize_embeddings": false,
|
| 3 |
"labels": [
|
| 4 |
"do_not_forward",
|
| 5 |
"customer_support"
|
| 6 |
-
]
|
|
|
|
| 7 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"labels": [
|
| 3 |
"do_not_forward",
|
| 4 |
"customer_support"
|
| 5 |
+
],
|
| 6 |
+
"normalize_embeddings": false
|
| 7 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1112197096
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c7b13a4dd3cc7fcdb18e4d9581f7822948145651638b8729bfc18bec0395e2c
|
| 3 |
size 1112197096
|
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7007
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ae1f58ae047a9d21456599780ae3a7b1ddfa5e3719829df852d08117b6b5e62
|
| 3 |
size 7007
|