GUVI
Back

Perceptron model code

Created 3 years ago
23 Views
1 Comments
ShwetaSrivastava
@ShwetaSrivastava
ShwetaSrivastava
@ShwetaSrivastavaProfile is locked. Login

Hi Team,

In Python coding of Perceptron model, I want to know reason behind below code:

Inside fit method of Perceptron class,

 if y==1 && y_pred ==0 then w=w+x and b=b+1

In the above code,

  1. Why we're incrementing weight here by x?

  2. Why we're incrementing "b" ? and even if we do that why we're incrementing it by "1" only? Any specific reason.

I'm not able to relate it with the concept explained in theory classes. So, need clarification in that, please provide detailed answer.

Comments
Please login to comment.
 
Powered by habitate.io Habitate