File size: 1,211 Bytes
99d7561 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
---
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%3C%2Fspan%3E
```
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)
``` |