Text Classification
setfit
Safetensors
sentence-transformers
mpnet
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use Rankle-Matching/setfit-section-filter-v0.2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use Rankle-Matching/setfit-section-filter-v0.2.0 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Rankle-Matching/setfit-section-filter-v0.2.0") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use Rankle-Matching/setfit-section-filter-v0.2.0 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Rankle-Matching/setfit-section-filter-v0.2.0") 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
Download training_metadata.json from Rankle-Matching/setfit-section-filter-v0.2.0: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/Rankle-Matching/setfit-section-filter-v0.2.0/resolve/main/training_metadata.json
- Command line
-
hf download hf://Rankle-Matching/setfit-section-filter-v0.2.0/training_metadata.json
-
curl -L -o training_metadata.json https://huggingface.co/Rankle-Matching/setfit-section-filter-v0.2.0/resolve/main/training_metadata.json
452 Bytes
| { | |
| "version": "v0.2.0", | |
| "base_model": "sentence-transformers/paraphrase-mpnet-base-v2", | |
| "labels": [ | |
| "skip", | |
| "keep" | |
| ], | |
| "training": { | |
| "batch_size": 16, | |
| "num_epochs": 4, | |
| "num_iterations": 20, | |
| "body_learning_rate": 2e-05, | |
| "solver": "liblinear", | |
| "max_iter": 100, | |
| "random_seed": 42, | |
| "data_dir": "data/training/section_filter" | |
| }, | |
| "test_metrics": { | |
| "accuracy": 0.8571428571428571, | |
| "total": 14 | |
| } | |
| } | |