Machine Learning - The Sigmoid Function

218 Views Asked by At

Calculate Node Output.

Task You are given the values for w1, w2, b, x1 and x2 and you must compute the output for the node. Use the sigmoid as the activation function.

Input Format w1, w2, b, x1 and x2 on one line separated by spaces

Output Format Float rounded to 4 decimal places

Sample Input 0 1 2 1 2

Sample Output 0.9820

1

There are 1 best solutions below

0
On

heres the formula of sigmoid

here x=x1w1+x2w2+b, put values of these and you will get the answer