IanRonk commited on
Commit
460874b
1 Parent(s): c53e5bf
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.30 # + 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.50 # + np.std(prediction)
45
  ).astype(int)
46
  return output, prediction.flatten()[: len(sentences)]