system's picture
system HF staff
Commit From AutoTrain
99d7561
|
raw
history blame
1.21 kB
metadata
tags:
  - autotrain
  - text-regression
language:
  - unk
widget:
  - text: I love AutoTrain
datasets:
  - garrettbaber/autotrain-data-twitter-fear-intensity-4
co2_eq_emissions:
  emissions: 0.17201402406362057

Model Trained Using AutoTrain

  • Problem type: Single Column Regression
  • Model ID: 68748137460
  • CO2 Emissions (in grams): 0.1720

Validation Metrics

  • Loss: 0.011
  • MSE: 0.011
  • MAE: 0.083
  • R2: 0.712
  • RMSE: 0.107
  • Explained Variance: 0.743

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"}' /static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fgarrettbaber%2Fautotrain-twitter-fear-intensity-4-68748137460

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("garrettbaber/autotrain-twitter-fear-intensity-4-68748137460", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("garrettbaber/autotrain-twitter-fear-intensity-4-68748137460", use_auth_token=True)

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

outputs = model(**inputs)