File size: 1,618 Bytes
bb47ca3
 
65b3b51
 
bb47ca3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
03e3d09
 
 
 
 
 
 
bb47ca3
 
 
 
 
 
5a1e98d
bb47ca3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3f266b1
 
 
 
 
 
 
bb47ca3
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
---
language: en
widget:
- text: "I got a rash from taking acetaminophen"
tags:
- sagemaker
- bert-base-uncased
- text classification
license: apache-2.0
datasets:
- adecorpusv2
model-index:
- name: BERT-ade_corpus
  results:
  - task: 
      name: Text Classification
      type: text-classification
    dataset:
      name: "ade_corpus_v2Ade_corpus_v2_classification" 
      type: ade_corpus
    metrics:
       - name: Validation Accuracy
         type: accuracy
         value: 92.98
       - name: Validation F1
         type: f1
         value: 82.73
  
---

## bert-base-uncased
This model was trained using Amazon SageMaker and the new Hugging Face Deep Learning container.

- Problem type: Text Classification(adverse drug effects detection).

## Hyperparameters
```json
{
    "do_eval": true,
    "do_train": true,
    "fp16": true,
    "load_best_model_at_end": true,
    "model_name": "bert-base-uncased",
    "num_train_epochs": 10,
    "per_device_eval_batch_size": 16,
    "per_device_train_batch_size": 16,
    "learning_rate":5e-5

}
```
## Validation Metrics
| key | value |
| --- | ----- |
| eval_accuracy  | 0.9298021697511167 |
| eval_auc | 0.8902672664394546 |
| eval_f1 | 0.827315541601256 |
| eval_loss | 0.17835010588169098 |
| eval_recall | 0.8234375 |
| eval_precision | 0.831230283911672 |

## 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 got a rash from taking acetaminophen"}' https://api-inference.huggingface.co/models/Jorgeutd/bert-base-uncased-ade-Ade-corpus-v2
```


"""