+ 3
is anyone help me to fix the bug in my code
sigmoid function last problem of machine learning course import math w1, w2, b, x1, x2 = [float(x) for x in input().split()] def sigmoid(x): return (1/(1+math.e**(-x)) ) sig=sigmoid(w1*x1+w2*x2+b) print(format(sig,".3f"))
3 RĂ©ponses
+ 4
See this code đ đ
w1, w2, b, x1, x2 = [float(x) for x in input().split()]
import math
output = w1*x1 + w2*x2 + b
output = round(1/(1 + math.exp(output*-1)), 4)
print(output)
+ 3
thank you so much sir for your help..
+ 3
U r welcome đ