CoolFace
Modelpublic

jogoni/autotrain-cuad-document-type-cleaned-2883984346

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

Model Trained Using AutoTrain

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

Validation Metrics

  • —Loss: 0.304
  • —Accuracy: 0.982
  • —Macro F1: 0.949
  • —Micro F1: 0.982
  • —Weighted F1: 0.978
  • —Macro Precision: 0.946
  • —Micro Precision: 0.982
  • —Weighted Precision: 0.976
  • —Macro Recall: 0.954
  • —Micro Recall: 0.982
  • —Weighted Recall: 0.982

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/jogoni/autotrain-cuad-document-type-cleaned-2883984346

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("jogoni/autotrain-cuad-document-type-cleaned-2883984346", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("jogoni/autotrain-cuad-document-type-cleaned-2883984346", use_auth_token=True)

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

outputs = model(**inputs)