First, we need the perceptron’s predicted output for a point. Inside the for loop, create a variable called prediction and assign it the correct label value using .activation() , .weighted_sum() , and inputs in a single statement.

prediction = self.activation(self.weighted_sum(inputs))

this is what I did for this example but its not going through wondering about the issue

Did you create a variable named prediction?
thats what the issue is but I have a variable so im a bit confused

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.