About Lesson
-
Input Representation:
- You’ve correctly represented the image pixels as numerical values (1 for colored and 0 for white).
- The 25 pixels in the 5 × 5 grid serve as inputs to our classifier.
-
Linear Combination and Weights:
- Each input pixel corresponds to a weight in the neural network.
- The linear combination of inputs is computed by multiplying each pixel value by its corresponding weight and summing them up.
- In your example, all weights are set to 1, resulting in a linear combination of 9 for the cross image and 8 for the circle image.
-
Activation Function:
- You’ve used a step activation function.
- If the linear combination is negative, the activation is 0 (signifying a cross).
- If positive, the activation is 1 (signifying a circle).
-
Improving Classification:
- To improve classification, we adjust weights based on what distinguishes crosses from circles.
- For example, assign weight -1 to the center pixel (13th pixel) and weight 1 to the middle pixels of each side.
- The cross input now produces a negative total value (activation 0), correctly classifying it.
- The circle input produces a positive total value (activation 1), correctly recognizing it.
Join the conversation