Text Classification
Transformers
PyTorch
Safetensors
English
deberta-v2
Trained with AutoTrain
text-embeddings-inference
Instructions to use Showroom/clothing_general_category with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Showroom/clothing_general_category with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Showroom/clothing_general_category")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Showroom/clothing_general_category") model = AutoModelForSequenceClassification.from_pretrained("Showroom/clothing_general_category") - Notebooks
- Google Colab
- Kaggle
Model Trained Using AutoTrain
- Problem type: Multi-class Classification
- Model ID: 77598140607
- CO2 Emissions (in grams): 0.5815
Validation Metrics
- Loss: 0.188
- Accuracy: 0.963
- Macro F1: 0.969
- Micro F1: 0.963
- Weighted F1: 0.962
- Macro Precision: 0.967
- Micro Precision: 0.963
- Weighted Precision: 0.963
- Macro Recall: 0.972
- Micro Recall: 0.963
- Weighted Recall: 0.963
Usage
You can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/Showroom/autotrain-clothing_general_category-77598140607
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("Showroom/autotrain-clothing_general_category-77598140607", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("Showroom/autotrain-clothing_general_category-77598140607", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
- Downloads last month
- 5