
Intro to Neural Network
Published: August 25, 2024
8 min read
TLDR: This page provided an introduction to neural networks, specifically the perceptron. Traditional programming, where rules are explicitly defined, is contrasted with perceptron programming, where rules are derived from adjusting weights and thresholds by a learning algorithm based on data. A basic case study of a non-negative classifier is used to illustrate this approach, highlighting how predefined mathematical characteristics can be replaced by data-driven inference.
Conclusion
In this article, using basic case study of non-negative classifier, we have seen a different approach of problem solving. Instead of defining rules as in ordinary programming, we use data to inference the rules. Instead of defining mathematical characteristics of the problem, we use learning algorithm to adjust the weights and threshold of the perceptron.
We could generalize the difference between ordinary programming and perceptron programming as follows:
---
title: "Ordinary Programming (Defining Rules)"
---
flowchart LR
I[Input]
O[Output]
R[Rules]
C[Computer]
classDef em1 stroke:#f00;
classDef em2 stroke:#f00,stroke-dasharray: 5 5;
I & R:::em1 --> C
C --> O:::em2
So instead of defining the rules explicitly, we let the computer learn the rules from the data 😎.
---
title: "Perceptron Programming (Deriving Rules)"
---
flowchart LR
I[Input]
O[Output]
R[Rules]
C[Computer]
classDef em1 stroke:#f00;
classDef em2 stroke:#f00,stroke-dasharray: 5 5;
I & O:::em2 --> C
C --> R:::em1
This extracted rules then used to solve the problem. Here is the complete diagram of the steps:
flowchart LR
TI["Training Input"]
TO["Training Output"]
R[Rules]
CL[Computer]
I[Input]
C[Computer]
O[Output]
classDef em1 stroke:#f00;
classDef em2 stroke:#f00,stroke-dasharray: 5 5;
subgraph learn [Learning Phase]
TI & TO:::em2 --> CL
CL --> R:::em1
end
subgraph solve [Solving/Usage Phase]
R:::em1 & I --> C
C --> O:::em2
end
References
Hello, Perceptron: An introduction to artificial neural networks (opens in a new tab)
Masterclass-Machine Learning untuk Rekayasa Teknik (opens in a new tab)