Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the perceptron algorithm when iterating over weights #30

Open
yacineMahdid opened this issue Nov 29, 2020 · 0 comments
Open

Fix the perceptron algorithm when iterating over weights #30

yacineMahdid opened this issue Nov 29, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yacineMahdid
Copy link
Owner

yacineMahdid commented Nov 29, 2020

From Youtube:

Hi, thanks for the content. At 9:04 min you are showing your fit function. Inside there are some steps to update the weights. You update apart weights[0] according to x_0 (with x_0 = 1). But the rest of the weights have to be updated so you are doing a loop to do so. Would it be "for f_i in range(1,num_row)" instead of "for f_i in range(num_row)" ? Because if I understand here you are updating again weights[0] in the first iteration of the loop. Pardon me if I'm wrong. Thanks in advance for your answer.

@yacineMahdid yacineMahdid self-assigned this Nov 29, 2020
@yacineMahdid yacineMahdid added the bug Something isn't working label Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant