loadedbert2 / README.md
system's picture
system HF staff
Commit From AutoTrain
215228b
metadata
tags:
  - autotrain
  - text-classification
language:
  - en
widget:
  - text: I love AutoTrain 🤗
datasets:
  - madmancity/autotrain-data-loadedbert
co2_eq_emissions:
  emissions: 0.44905461578367334

Model Trained Using AutoTrain

  • Problem type: Binary Classification
  • Model ID: 49335119194
  • CO2 Emissions (in grams): 0.4491

Validation Metrics

  • Loss: 0.439
  • Accuracy: 0.931
  • Precision: 1.000
  • Recall: 0.857
  • AUC: 0.957
  • F1: 0.923

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/madmancity/autotrain-loadedbert-49335119194

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("madmancity/autotrain-loadedbert-49335119194", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("madmancity/autotrain-loadedbert-49335119194", use_auth_token=True)

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

outputs = model(**inputs)