Spaces:
Runtime error
Runtime error
- functions/model_infer.py +1 -1
functions/model_infer.py
CHANGED
|
@@ -41,6 +41,6 @@ def predict_from_document(sentences):
|
|
| 41 |
# Set the prediction threshold to 0.8 instead of 0.5, now use mean
|
| 42 |
output = (
|
| 43 |
prediction.flatten()[: len(sentences)]
|
| 44 |
-
>= np.mean(prediction) * 1.
|
| 45 |
).astype(int)
|
| 46 |
return output, prediction.flatten()[: len(sentences)]
|
|
|
|
| 41 |
# Set the prediction threshold to 0.8 instead of 0.5, now use mean
|
| 42 |
output = (
|
| 43 |
prediction.flatten()[: len(sentences)]
|
| 44 |
+
>= np.mean(prediction) * 1.20 # + np.std(prediction)
|
| 45 |
).astype(int)
|
| 46 |
return output, prediction.flatten()[: len(sentences)]
|