Text Classification
setfit
Safetensors
sentence-transformers
mpnet
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use peter2000/setfit-vulnerability-groups with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use peter2000/setfit-vulnerability-groups with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("peter2000/setfit-vulnerability-groups") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use peter2000/setfit-vulnerability-groups with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("peter2000/setfit-vulnerability-groups") 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
Add evaluation metrics (macro-F1, micro-F1, per-label F1, ECE)
Browse files- metrics.json +20 -20
metrics.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
| 1 |
{
|
| 2 |
-
"macro_f1": 0.
|
| 3 |
-
"micro_f1": 0.
|
| 4 |
-
"ece": 0.
|
| 5 |
-
"subset_accuracy": 0.
|
| 6 |
"per_label_f1": {
|
| 7 |
-
"Agricultural communities": 0.
|
| 8 |
-
"Coastal communities": 0.
|
| 9 |
-
"Ethnic, racial or other minorities": 0.
|
| 10 |
-
"Fishery communities": 0.
|
| 11 |
-
"Informal sector workers": 0.
|
| 12 |
-
"Members of indigenous and local communities": 0.
|
| 13 |
-
"Migrants and displaced persons": 0.
|
| 14 |
-
"Older persons": 0.
|
| 15 |
-
"Other": 0.
|
| 16 |
-
"Persons living in poverty": 0.
|
| 17 |
-
"Persons with disabilities": 0.
|
| 18 |
-
"Persons with pre-existing health conditions": 0.
|
| 19 |
-
"Residents of drought-prone regions": 0.
|
| 20 |
-
"Rural populations": 0.
|
| 21 |
"Sexual minorities (LGBTQI+)": 0.0,
|
| 22 |
-
"Urban populations": 0.
|
| 23 |
-
"Women and other genders": 0.
|
| 24 |
}
|
| 25 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"macro_f1": 0.6363926493183459,
|
| 3 |
+
"micro_f1": 0.7068273092369478,
|
| 4 |
+
"ece": 0.016302321274583108,
|
| 5 |
+
"subset_accuracy": 0.5578947368421052,
|
| 6 |
"per_label_f1": {
|
| 7 |
+
"Agricultural communities": 0.8333,
|
| 8 |
+
"Coastal communities": 0.5714,
|
| 9 |
+
"Ethnic, racial or other minorities": 0.4444,
|
| 10 |
+
"Fishery communities": 0.5,
|
| 11 |
+
"Informal sector workers": 0.6667,
|
| 12 |
+
"Members of indigenous and local communities": 0.75,
|
| 13 |
+
"Migrants and displaced persons": 0.75,
|
| 14 |
+
"Older persons": 0.8421,
|
| 15 |
+
"Other": 0.4848,
|
| 16 |
+
"Persons living in poverty": 0.6667,
|
| 17 |
+
"Persons with disabilities": 0.875,
|
| 18 |
+
"Persons with pre-existing health conditions": 0.5,
|
| 19 |
+
"Residents of drought-prone regions": 0.5714,
|
| 20 |
+
"Rural populations": 0.8,
|
| 21 |
"Sexual minorities (LGBTQI+)": 0.0,
|
| 22 |
+
"Urban populations": 0.6154,
|
| 23 |
+
"Women and other genders": 0.9474
|
| 24 |
}
|
| 25 |
}
|