How Perceptrons Work
An artificial neuron takes input values, multiplies each by its corresponding weight, sums the results, and adds a bias.
This calculated value is then passed through an activation function to produce the final output.
Expressed as a formula, it looks like this:
y = f(w₁x₁ + w₂x₂ + ... + wₙxₙ + b)
-
y: Final output of the neuron
-
f: Activation function
-
w: Weights for each input value
-
x: Input values
-
b: Bias
Understanding with a Simple Example
Let’s look at a simple scenario: a perceptron deciding whether to “turn on the air conditioner if it’s hot (Input1) and humid (Input2)”.
Input Values
- Temperature: 86°F (Input1)
- Humidity: 90% (Input2)
Weights
- Weight for temperature: 0.7
- Weight for humidity: 0.3
Bias
- Bias value: -10
In this case, the perceptron calculates as follows:
(Temperature × Temperature Weight) + (Humidity × Humidity Weight) + Bias
= (86 × 0.7) + (90 × 0.3) + (-10)
= 60.2 + 27 - 10
= 77.2
Since the result does not exceed a set threshold (e.g., 98), the activation function decides to "keep the air conditioner off (Output=0)".
If the result had exceeded the threshold, the decision would be "turn on the air conditioner (Output=1)".
This example shows how a perceptron makes simple decisions by combining inputs, weights, and bias.
When multiple perceptrons are connected, they form a neural network, and when these network layers are stacked to form deep structures, it is known as Deep Learning.
In the next lesson, we will delve deeper into Deep Learning.
Lessons in this chapter · Machine Learning: Learning Patterns Hidden in Data
- 1. What’s All the Hype About? What Is Machine Learning?
- 2. What Are Neural Networks That Mimic the Human Brain?
- 3. How Perceptrons Work
- 4. Taking It Further: What Is Deep Learning?
- 5. Machine Learning vs. Deep Learning: Key Differences
- 6. Multiple Choice Quiz
- 7. What Does It Mean to Train AI?
- 8. The Result of AI Training: Files Made of Matrices
- 9. Supervised Learning: Learning with the Right Answers
- 10. Unsupervised Learning: Finding Patterns Without Answers
- 11. Reinforcement Learning: Learning Through Rewards
- 12. Fill-in-the-Blank Quiz
- 13. TensorFlow: A Library for Machine Learning and Deep Learning
- 14. Tensor: The Core Unit of TensorFlow
- 15. Tensor Dimensions
- 16. Multiple Choice Quiz
- 17. Understanding Tensor Operations
- 18. Top 5 Most Used TensorFlow APIs
- 19. Building a Simple Linear Regression Model with TensorFlow
- 20. Fill-in-the-Blank Quiz
- 21. Keras: A Simple and Intuitive Neural Network Library
- 22. Training and Evaluating Models with Keras
- 23. Multiple Choice Quiz
A perceptron makes its final decision by combining input values, weights, and biases.
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help