Skip to content

Fix the perceptron algorithm when iterating over weights #30

@yacineMahdid

Description

@yacineMahdid

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions