0

Function sigmoid

What syntax function sigmoid f(x)=1/(1+e**(-x)) for the sum of the list sum(list) on Python

3rd Feb 2019, 2:34 AM
Константин Чупрына
Константин Чупрына - avatar
1 Answer
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.
3rd Feb 2019, 3:03 AM
Mauricio Martins
Mauricio Martins - avatar