Model Trained Using AutoTrain
- Problem type: Multi-class Classification
- Model ID: 38591101687
- CO2 Emissions (in grams): 107.8531
Validation Metrics
- Loss: 0.740
- Accuracy: 0.684
- Macro F1: 0.340
- Micro F1: 0.684
- Weighted F1: 0.676
- Macro Precision: 0.341
- Micro Precision: 0.684
- Weighted Precision: 0.679
- Macro Recall: 0.343
- Micro Recall: 0.684
- Weighted Recall: 0.684
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/mziyad/autotrain-classify-reviews-38591101687
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("mziyad/autotrain-classify-reviews-38591101687", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("mziyad/autotrain-classify-reviews-38591101687", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)