Sentimentale / README.md
system's picture
system HF staff
Commit From AutoTrain
d10b215
|
raw
history blame
1.32 kB
metadata
tags:
  - autotrain
  - text-classification
language:
  - en
widget:
  - text: I love AutoTrain 🤗
datasets:
  - yigitkucuk/autotrain-data-poem-sentimentale
co2_eq_emissions:
  emissions: 0.7402856123778213

Model Trained Using AutoTrain

  • Problem type: Multi-class Classification
  • Model ID: 3099088026
  • CO2 Emissions (in grams): 0.7403

Validation Metrics

  • Loss: 0.576
  • Accuracy: 0.827
  • Macro F1: 0.711
  • Micro F1: 0.827
  • Weighted F1: 0.827
  • Macro Precision: 0.708
  • Micro Precision: 0.827
  • Weighted Precision: 0.828
  • Macro Recall: 0.716
  • Micro Recall: 0.827
  • Weighted Recall: 0.827

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/yigitkucuk/autotrain-poem-sentimentale-3099088026

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("yigitkucuk/autotrain-poem-sentimentale-3099088026", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("yigitkucuk/autotrain-poem-sentimentale-3099088026", use_auth_token=True)

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

outputs = model(**inputs)