Upload 5 files
Browse files- README.md +64 -0
- fingerprint.pb +3 -0
- keras_metadata.pb +3 -0
- model.png +0 -0
- saved_model.pb +3 -0
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: keras
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: text-classification
|
| 6 |
+
tags:
|
| 7 |
+
- toxic
|
| 8 |
+
- comment
|
| 9 |
+
- toxic comment
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## Model description
|
| 13 |
+
|
| 14 |
+
This model used for text classification with toxic and non-toxic labels.
|
| 15 |
+
|
| 16 |
+
## Intended uses & limitations
|
| 17 |
+
|
| 18 |
+
If you want to reuse model, try copy this
|
| 19 |
+
```
|
| 20 |
+
from huggingface_hub import from_pretrained_keras
|
| 21 |
+
reloaded_model = from_pretrained_keras('Johnesss/Toxic-Comment-Classification')
|
| 22 |
+
|
| 23 |
+
y_testing=reloaded_model.predict(x_testing,verbose=1,batch_size=32)
|
| 24 |
+
test_df['Toxic']=['Not Toxic' if x<0.5 else 'Toxic' for x in y_testing]
|
| 25 |
+
test_df[['comment_text','Toxic']].head(20)
|
| 26 |
+
```
|
| 27 |
+
## Training and evaluation data
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training procedure
|
| 32 |
+
|
| 33 |
+
### Training hyperparameters
|
| 34 |
+
|
| 35 |
+
The following hyperparameters were used during training:
|
| 36 |
+
|
| 37 |
+
| Hyperparameters | Value |
|
| 38 |
+
| :-- | :-- |
|
| 39 |
+
| name | Adam |
|
| 40 |
+
| weight_decay | None |
|
| 41 |
+
| clipnorm | None |
|
| 42 |
+
| global_clipnorm | None |
|
| 43 |
+
| clipvalue | None |
|
| 44 |
+
| use_ema | False |
|
| 45 |
+
| ema_momentum | 0.99 |
|
| 46 |
+
| ema_overwrite_frequency | None |
|
| 47 |
+
| jit_compile | False |
|
| 48 |
+
| is_legacy_optimizer | False |
|
| 49 |
+
| learning_rate | 0.0010000000474974513 |
|
| 50 |
+
| beta_1 | 0.9 |
|
| 51 |
+
| beta_2 | 0.999 |
|
| 52 |
+
| epsilon | 1e-07 |
|
| 53 |
+
| amsgrad | False |
|
| 54 |
+
| training_precision | float32 |
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
## Model Plot
|
| 58 |
+
|
| 59 |
+
<details>
|
| 60 |
+
<summary>View Model Plot</summary>
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
|
| 64 |
+
</details>
|
fingerprint.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75bfc290ace81c057c9b7b265021de305dd62f6bd7445ff6bd6f0567530f4a5f
|
| 3 |
+
size 57
|
keras_metadata.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e395a8b63a0b2a960fa6b0ef5cd970414903ccb88af81e693b6ea024e7c03e64
|
| 3 |
+
size 119043940
|
model.png
ADDED
|
saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8387575efdf7ac545760e44943a3fc37d755255fb0c0f57bb199c2d42b1d389b
|
| 3 |
+
size 158326
|