perceptron classifier for alphabet

8 visualizaciones (últimos 30 días)
Kamyar Mazarei
Kamyar Mazarei el 2 de Abr. de 2021
Respondida: Jayanti el 1 de Jul. de 2025
hi
i need to make an alphabet perceptron classifier using "newp" command
i have 20 samples (fonts) for each letter of aphabet (each 60x60)
i hvae no idea what to do or where to begin
i toyed with the commnads for 3-4 samples of "A" but didnt learn anything :/
im a beginer with matlab no idea what to do so if you can guide me through that be great
thank you

Respuestas (1)

Jayanti
Jayanti el 1 de Jul. de 2025
Perceptron is used for binary classification tasks and works well only when the data is linearly separable. However, in your case, the task is to classify 26 alphabet letters, which is a multi-class classification problem.
For such problems, you can use the "patternnet" function in MATLAB, which returns a pattern recognition neural network. Pattern recognition networks are feedforward neural networks designed to classify inputs into multiple target classes.
Below is a simple example that creates and trains a pattern recognition network with one hidden layer of size 5:
% Create a pattern recognition network with 5 hidden neurons
net = patternnet(5);
% Train the network with input data x and target labels t
net = train(net, x, t);
% Use the trained network to predict outputs
y = net(x);
You can also refer to the offical MathWorks documentation on “patternnet” for your reference:

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by