Spaces:
Runtime error
Runtime error
2stdev -> stdev
Browse files40 unmodified lines41424344454640 unmodified lines# Set the prediction threshold to 0.8 instead of 0.5, now use meanoutput = (prediction.flatten()[: len(sentences)]>= np.mean(prediction) + np.std(prediction)).astype(int)return output, prediction.flatten()[: len(sentences)]40 unmodified lines41424344454640 unmodified lines# Set the prediction threshold to 0.8 instead of 0.5, now use meanoutput = (prediction.flatten()[: len(sentences)]>= np.mean(prediction) * 1.30 # + np.std(prediction)).astype(int)return output, prediction.flatten()[: len(sentences)]
functions/model_infer.py+1-1