demo_knots_1_4 / README.md
system's picture
system HF staff
Commit From AutoTrain
3601755
|
raw
history blame
1.14 kB
---
tags:
- autotrain
- text-classification
language:
- unk
widget:
- text: "I love AutoTrain 🤗"
datasets:
- dav3794/autotrain-data-demo-knots3
co2_eq_emissions:
emissions: 0.03305239439397985
---
# Model Trained Using AutoTrain
- Problem type: Binary Classification
- Model ID: 1315750263
- CO2 Emissions (in grams): 0.0331
## Validation Metrics
- Loss: 0.345
- Accuracy: 0.880
- Precision: 0.894
- Recall: 0.955
- AUC: 0.888
- 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/dav3794/autotrain-demo-knots3-1315750263
```
Or Python API:
```
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("dav3794/autotrain-demo-knots3-1315750263", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("dav3794/autotrain-demo-knots3-1315750263", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
```