Skip to content

Perceptron train #24

Mar 16, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hmm, to help finding out what's going on, can you modify this

    for i, _ in enumerate(self.weights):
        weighted_sum_z += x[i] * self.weights[i] 

to

    for i, _ in enumerate(self.weights):
        print(x[i])
        weighted_sum_z += x[i] * self.weights[i] 

to find out what could be causing this?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lordpba
Comment options

@rasbt
Comment options

Answer selected by rasbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants