File size: 2,089 Bytes
74c4be0 bef43f2 74c4be0 5192146 74c4be0 ad83af3 74c4be0 5192146 74c4be0 6863e3a 74c4be0 8ab719d 6863e3a 8ab719d 5192146 74c4be0 ad83af3 74c4be0 a30264b ad83af3 74c4be0 |
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
---
inference: true
tags:
- pytorch
- transformers
- autotrain
- text-classification
language:
- pt
widget:
- text: I love AutoTrain 🤗
datasets:
- alexandreteles/told_br_binary_sm
co2_eq_emissions:
emissions: 1.778776476039011
model-index:
- name: told_br_binary_sm_bertimbau
results:
- task:
type: binary-classification
name: Binary Classification
dataset:
type: alexandreteles/told_br_binary_sm
name: told-br
metrics:
- type: accuracy
value: 0.815
name: Accuracy
verified: true
- type: f1
value: 0.793
name: F1
verified: true
- type: roc_auc
value: 0.895
name: AUC
verified: true
library_name: transformers
---
# Model Trained Using AutoTrain
- Problem type: Binary Classification
- Model ID: 2489776826
- Base model: bert-base-portuguese-cased
- Parameters: 109M
- Model size: 416MB
- CO2 Emissions (in grams): 1.7788
## Validation Metrics
- Loss: 0.412
- Accuracy: 0.815
- Precision: 0.793
- Recall: 0.794
- AUC: 0.895
- F1: 0.793
## Usage
This model was trained on a random subset of the [told-br](https://huggingface.co/datasets/told-br) dataset (1/3 of the original size). Our main objective is to provide a small
model that can be used to classify Brazilian Portuguese tweets in a binary way ('toxic' or 'non toxic').
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/alexandreteles/autotrain-told_br_binary_sm_bertimbau-2489776826
```
Or Python API:
```
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("alexandreteles/autotrain-told_br_binary_sm_bertimbau-2489776826", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("alexandreteles/autotrain-told_br_binary_sm_bertimbau-2489776826", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
``` |