Spaces:
Runtime error
Runtime error
Make model more conservative
Browse files37 unmodified lines383940414237 unmodified linespreprop = preprocess(sentences)prediction = model.predict(preprop)# Set the prediction threshold to 0.8output = (prediction.flatten()[: len(sentences)] >= 0.8).astype(int)return output, prediction.flatten()[: len(sentences)]37 unmodified lines383940414237 unmodified linespreprop = preprocess(sentences)prediction = model.predict(preprop)# Set the prediction threshold to 0.8output = (prediction.flatten()[: len(sentences)] >= 0.85).astype(int)return output, prediction.flatten()[: len(sentences)]
functions/model_infer.py+1-1