LikoKiko
commited on
Commit
·
0e7f17a
1
Parent(s):
3a8d54b
Init
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ metrics:
|
|
| 42 |
| **Precision** | 0.9812 |
|
| 43 |
| **Recall** | 0.9835 |
|
| 44 |
|
| 45 |
-
*Note: Best Threshold = 0.
|
| 46 |
|
| 47 |
### Training Graphs
|
| 48 |
|
|
@@ -83,7 +83,7 @@ def predict(text):
|
|
| 83 |
return {
|
| 84 |
"text": text,
|
| 85 |
"score": round(score, 4),
|
| 86 |
-
"is_toxic": score >= 0.
|
| 87 |
}
|
| 88 |
|
| 89 |
# Example usage
|
|
|
|
| 42 |
| **Precision** | 0.9812 |
|
| 43 |
| **Recall** | 0.9835 |
|
| 44 |
|
| 45 |
+
*Note: Best Threshold = 0.17*
|
| 46 |
|
| 47 |
### Training Graphs
|
| 48 |
|
|
|
|
| 83 |
return {
|
| 84 |
"text": text,
|
| 85 |
"score": round(score, 4),
|
| 86 |
+
"is_toxic": score >= 0.17 # Threshold
|
| 87 |
}
|
| 88 |
|
| 89 |
# Example usage
|