system's picture
system HF staff
Commit From AutoTrain
3fc6073
---
tags:
- autotrain
- text-classification
language:
- en
widget:
- text: "I love AutoTrain"
datasets:
- Showroom/autotrain-data-clothing_general_category
co2_eq_emissions:
emissions: 0.5930357816943997
---
# Model Trained Using AutoTrain
- Problem type: Multi-class Classification
- Model ID: 77598140606
- CO2 Emissions (in grams): 0.5930
## Validation Metrics
- Loss: 0.141
- Accuracy: 0.963
- Macro F1: 0.959
- Micro F1: 0.963
- Weighted F1: 0.961
- Macro Precision: 0.976
- Micro Precision: 0.963
- Weighted Precision: 0.966
- Macro Recall: 0.951
- 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-77598140606
```
Or Python API:
```
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("Showroom/autotrain-clothing_general_category-77598140606", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("Showroom/autotrain-clothing_general_category-77598140606", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
```