Skip to content

Instantly share code, notes, and snippets.

@klintan
Created September 7, 2018 23:20
Show Gist options
  • Save klintan/55c14b6ba357a382897b7bb1a0639188 to your computer and use it in GitHub Desktop.
Save klintan/55c14b6ba357a382897b7bb1a0639188 to your computer and use it in GitHub Desktop.
Truthfinder 7
def compute_final_confidence(data, confidence):
for idx, claim in data.iterrows():
data.at[idx, 'confidence'] = 1 / (1 + np.exp(-DAMPING_FACTOR * claim['confidence']))
return (data, confidence)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment