0
Function sigmoid
What syntax function sigmoid f(x)=1/(1+e**(-x)) for the sum of the list sum(list) on Python
1 Odpowiedź
0
the x value will be provided by the result of sum(list) value. the better is to create a function
# at top of your script
import math
# at body of your script
def sigmoid(x):
return 1/(1+math.e**(-x))
# anywhere in your script
sig=sigmoid(sum(list))
I won't enter in details. Make sure the values of your list is the product of the weight and it's respective input' value... good luck.