IanRonk commited on
Commit
737faca
1 Parent(s): d35c2c5
Files changed (1) hide show
  1. 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.50 # + np.std(prediction)
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)]