Question on neural networks machine perceptron

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.

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

1 Like

hi what langage are you doing. and.

hi its python I believe for learning neural networks

There is a welcome guide that instructs how one can write a post and ask a question (and get good answers.)

Please post:

  • Link to the lesson.
  • all of your formatted code
  • any code errors you’re receiving
  • your question.
1 Like

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