What is the sequence of the following tasks in a perceptron? Initialize weights of perceptron randomly Go to the next batch of dataset If the prediction does not match the output, change the weights For a sample input, compute an output

1, 4, 3, 2
3, 1, 2, 4
4, 3, 2, 1
1, 2, 3, 4

The correct answer is: D. 1, 2, 3, 4.

The sequence of tasks in a perceptron is as follows:

  1. Initialize weights of perceptron randomly.
  2. For a sample input, compute an output.
  3. If the prediction does not match the output, change the weights.
  4. Go to the next batch of dataset.

The first step is to initialize the weights of the perceptron randomly. This can be done by generating a random number for each weight. The next step is to compute the output of the perceptron for a sample input. This is done by multiplying the input by the weights and then adding the bias. The third step is to compare the prediction of the perceptron to the actual output. If the prediction does not match the output, then the weights of the perceptron are changed. This is done by multiplying the weights by a learning rate and then adding the error. The final step is to go to the next batch of data. This process is repeated until the desired accuracy is reached.

Option A is incorrect because the weights are not initialized randomly. Option B is incorrect because the weights are not changed if the prediction matches the output. Option C is incorrect because the weights are not changed before going to the next batch of data.

Exit mobile version