 Machine Learning: The Sigmoid Function | SoloLearn: Learn to code for FREE!

0

# Machine Learning: The Sigmoid Function

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 I'm having trouble, and the due date is today, which I think is stupid, since these things take WAY longer to learn than usual. If anyone can give the answer to me, I would be glad. Thanks.

+1

Value =( W1*X1 + W2 * X2 ) + b Then put value in sigmoid function Sigmoid = 1/(1+(e**-value)) -> import e from math (from math import e) https://code.sololearn.com/cAc6grWX9IBZ/?ref=app here is the solution!

0

0

I can't answer to this question please someone help me Machine Learning - The Sigmoid Function 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.

0

Siavosh sanoodi please see my code above

0

It says that the result should be 0.982