|
--- |
|
tags: |
|
- autotrain |
|
- text-regression |
|
language: |
|
- unk |
|
widget: |
|
- text: "I love AutoTrain 🤗" |
|
datasets: |
|
- huynhdoo/autotrain-data-ell-phraseology |
|
co2_eq_emissions: |
|
emissions: 3.8479338857094207 |
|
--- |
|
|
|
# Model Trained Using AutoTrain |
|
|
|
- Problem type: Single Column Regression |
|
- Model ID: 2217871115 |
|
- CO2 Emissions (in grams): 3.8479 |
|
|
|
## Validation Metrics |
|
|
|
- Loss: 0.254 |
|
- MSE: 0.254 |
|
- MAE: 0.393 |
|
- R2: 0.413 |
|
- RMSE: 0.504 |
|
- Explained Variance: 0.414 |
|
|
|
## 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/huynhdoo/autotrain-ell-phraseology-2217871115 |
|
``` |
|
|
|
Or Python API: |
|
|
|
``` |
|
from transformers import AutoModelForSequenceClassification, AutoTokenizer |
|
|
|
model = AutoModelForSequenceClassification.from_pretrained("huynhdoo/autotrain-ell-phraseology-2217871115", use_auth_token=True) |
|
|
|
tokenizer = AutoTokenizer.from_pretrained("huynhdoo/autotrain-ell-phraseology-2217871115", use_auth_token=True) |
|
|
|
inputs = tokenizer("I love AutoTrain", return_tensors="pt") |
|
|
|
outputs = model(**inputs) |
|
``` |