IanRonk commited on
Commit
82c2792
·
1 Parent(s): d4f3259

2stdev -> stdev

Browse files
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) + np.std(prediction) * 2
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) + np.std(prediction)
45
  ).astype(int)
46
  return output, prediction.flatten()[: len(sentences)]