File size: 1,319 Bytes
1e70961 d74bb3a 1e70961 |
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 |
---
library_name: keras
language:
- en
pipeline_tag: text-classification
tags:
- toxic
- comment
- toxic comment
---
## Model description
This model used for text classification with toxic and non-toxic labels.
## Intended uses & limitations
If you want to reuse model, try copy this
```
from huggingface_hub import from_pretrained_keras
reloaded_model = from_pretrained_keras('Johnesss/Toxic-Comment-Classification')
y_testing=reloaded_model.predict(x_testing,verbose=1,batch_size=32)
test_df['Toxic']=['Not Toxic' if x<0.5 else 'Toxic' for x in y_testing]
test_df[['comment_text','Toxic']].head(20)
```
## Training and evaluation data
Full info in .ipynb file
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
| Hyperparameters | Value |
| :-- | :-- |
| name | Adam |
| weight_decay | None |
| clipnorm | None |
| global_clipnorm | None |
| clipvalue | None |
| use_ema | False |
| ema_momentum | 0.99 |
| ema_overwrite_frequency | None |
| jit_compile | False |
| is_legacy_optimizer | False |
| learning_rate | 0.0010000000474974513 |
| beta_1 | 0.9 |
| beta_2 | 0.999 |
| epsilon | 1e-07 |
| amsgrad | False |
| training_precision | float32 |
## Model Plot
<details>
<summary>View Model Plot</summary>
![Model Image](./model.png)
</details> |