Model Trained Using AutoTrain
- Problem type: Multi-class Classification
- Model ID: 70733138269
- CO2 Emissions (in grams): 0.0338
Validation Metrics
- Loss: 0.721
- Accuracy: 0.714
- Macro F1: 0.419
- Micro F1: 0.714
- Weighted F1: 0.658
- Macro Precision: 0.478
- Micro Precision: 0.714
- Weighted Precision: 0.653
- Macro Recall: 0.465
- Micro Recall: 0.714
- Weighted Recall: 0.714
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/garrettbaber/autotrain-twitter-roberta-base-ordinal-fear-classification-70733138269
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("garrettbaber/autotrain-twitter-roberta-base-ordinal-fear-classification-70733138269", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("garrettbaber/autotrain-twitter-roberta-base-ordinal-fear-classification-70733138269", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)