can figure this one out In the .training() method, let’s find the perceptron’s error on each inputs in training_set.
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.