An example for linear classifier by MSE(Mean Square Error) and Perceptron calssifier
This program separate 2 different classes with 2 features by the methods of MSE and Perceptron. Tow different way for Perceptron classifier was used one by MATLAB command (perceptron) and train the one layer perceptron net, and other the program i wrote based on perceptron theory and gradient descent formula. (The presentation file also added).
All the classification lines are plotted. In program if max iteration reached a line with minimum wrong classified object also plotted.
Cite As
mmazloumi (2026). An example for linear classifier by MSE(Mean Square Error) and Perceptron calssifier (https://www.mathworks.com/matlabcentral/fileexchange/67346-an-example-for-linear-classifier-by-mse-mean-square-error-and-perceptron-calssifier), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Deep Learning Toolbox > Train Deep Neural Networks > Function Approximation, Clustering, and Control > Function Approximation and Clustering > Define Shallow Neural Network Architectures >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | No. changes |
