fixing linter errors

This commit is contained in:
Vhizux
2020-10-23 15:38:02 +02:00
parent 63e2492bc2
commit 7d3c938e0f

View File

@@ -15,8 +15,8 @@ def conditionalProbFunc():
return P_disease_plus
problem = "Someone tested positive for a nasty disease which only {0:.2f}% of population have. " \
"Test sensitivity (true positive) is equal to SN= {1:.2f}% whereas test specificity (true negative) SP= {2:.2f}%. " \
"What is the probability that this guy really has that disease?".format(P_disease, true_positive, true_negative)
"Test sensitivity (true positive) is equal to SN= {1:.2f}% whereas test specificity (true negative) SP= {2:.2f}%. " \
"What is the probability that this guy really has that disease?".format(P_disease, true_positive, true_negative)
answer = str(round(BayesFormula(P_disease, true_positive, true_negative), 2)) + "%"
return problem, answer