필터 지우기
필터 지우기

Perceptron Neural Network using matlab

조회 수: 1 (최근 30일)
Nermeen alami
Nermeen alami 2013년 3월 8일
댓글: Een Qurota Aini 2014년 2월 18일
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
Een Qurota Aini
Een Qurota Aini 2014년 2월 18일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Greg Heath
Greg Heath 2013년 3월 9일
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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by