Borrar filtros
Borrar filtros

Perceptron Neural Network using matlab

1 visualización (últimos 30 días)
Nermeen alami
Nermeen alami el 8 de Mzo. de 2013
Comentada: Een Qurota Aini el 18 de Feb. de 2014
hi
i need help ! i need some one to explain how to program Perceptron Neural Network. actually i start searching Perceptron two days ago. and i can't understand how to code it. so if anyone have it's code or anything to help i would be grateful.(i did the nearest neighbor for images classification but it doesn't work as we want so i want to try the Perceptron)
Thank you all wish to find help :(
  1 comentario
Een Qurota Aini
Een Qurota Aini el 18 de Feb. de 2014
Hope this example hepls
clc;
clear;
%input
P = [0 0 1 1; 0 1 0 1];
%target
T = [0 1 1 1];
%Membangun jaringan syaraf tiruan dengan perceptron
net = newp(minmax(P),1);
%mengembalikan nilai bobot sesuai dengan inisialisasi fungsi
net = init(net);
%Set epoh sebanyak 10 kali
net.adaptParam.passes = 10;
%Melakukan adaptasi
[net,Y,E] = adapt(net,P,T);
%Menggambar grafik hasil
plotpv(P,T);
plotpc(net.IW{1,1},net.b{1});
%Mencari mean square error
EmEsE = mse(E);
%Tampilkan hasil
BobotInputAkhir = net.IW{1,1}
BobotBiasAkhir = net.b{1}
MSE = EmEsE

Iniciar sesión para comentar.

Respuesta aceptada

Greg Heath
Greg Heath el 9 de Mzo. de 2013
If you have the NNTBX, just read the documentation and try a few demos using PATTERNNET and some of the pattern recognition/classification data to be found with the command
help nndatasets
Also, using the GUI might help speed your learning.
Hope this helps.
Thank you for formally accepting my answer
Greg

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by