CoolFace
Modelpublic

billster45/autotrain-news_headlines-47662116693

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes9downloads
Model Card

Model Trained Using AutoTrain

  • —Problem type: Multi-class Classification
  • —Model ID: 47662116693
  • —CO2 Emissions (in grams): 0.4729

Validation Metrics

  • —Loss: 0.474
  • —Accuracy: 0.866
  • —Macro F1: 0.836
  • —Micro F1: 0.866
  • —Weighted F1: 0.865
  • —Macro Precision: 0.844
  • —Micro Precision: 0.866
  • —Weighted Precision: 0.865
  • —Macro Recall: 0.830
  • —Micro Recall: 0.866
  • —Weighted Recall: 0.866

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/billster45/autotrain-news_headlines-47662116693

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("billster45/autotrain-news_headlines-47662116693", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("billster45/autotrain-news_headlines-47662116693", use_auth_token=True)

inputs = tokenizer("I love AutoTrain", return_tensors="pt")

outputs = model(**inputs)