Commit ·
5142e6b
1
Parent(s): c7933d2
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
tags: autonlp
|
| 3 |
-
language: unk
|
| 4 |
-
widget:
|
| 5 |
-
- text: "I love AutoNLP 🤗"
|
| 6 |
-
datasets:
|
| 7 |
-
- rayschwartz/new-text-classifications
|
| 8 |
-
co2_eq_emissions: 2.0318857468309206
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Model Trained Using AutoNLP
|
| 12 |
-
|
| 13 |
-
- Problem type: Multi-class Classification
|
| 14 |
-
- Model ID: 38319698
|
| 15 |
-
- CO2 Emissions (in grams): 2.0318857468309206
|
| 16 |
-
|
| 17 |
-
## Validation Metrics
|
| 18 |
-
|
| 19 |
-
- Loss: 0.04461582377552986
|
| 20 |
-
- Accuracy: 0.9909255898366606
|
| 21 |
-
- Macro F1: 0.9951842095089771
|
| 22 |
-
- Micro F1: 0.9909255898366606
|
| 23 |
-
- Weighted F1: 0.9909493945587176
|
| 24 |
-
- Macro Precision: 0.9942196531791907
|
| 25 |
-
- Micro Precision: 0.9909255898366606
|
| 26 |
-
- Weighted Precision: 0.9911878560263526
|
| 27 |
-
- Macro Recall: 0.9962686567164181
|
| 28 |
-
- Micro Recall: 0.9909255898366606
|
| 29 |
-
- Weighted Recall: 0.9909255898366606
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
## Usage
|
| 33 |
-
|
| 34 |
-
You can use cURL to access this model:
|
| 35 |
-
|
| 36 |
-
```
|
| 37 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/rayschwartz/new-text-classifications
|
| 38 |
-
```
|
| 39 |
-
|
| 40 |
-
Or Python API:
|
| 41 |
-
|
| 42 |
-
```
|
| 43 |
-
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 44 |
-
|
| 45 |
-
model = AutoModelForSequenceClassification.from_pretrained("rayschwartz/new-text-classifications", use_auth_token=True)
|
| 46 |
-
|
| 47 |
-
tokenizer = AutoTokenizer.from_pretrained("rayschwartz/new-text-classifications", use_auth_token=True)
|
| 48 |
-
|
| 49 |
-
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
|
| 50 |
-
|
| 51 |
-
outputs = model(**inputs)
|
| 52 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|