필터 지우기
필터 지우기

How to add HOG feature to the following code

조회 수: 2 (최근 30일)
Tousif Ahmed
Tousif Ahmed 2017년 4월 22일
댓글: Tousif Ahmed 2017년 4월 26일
Here is the code for the neural network, "Latest.mat" contains training and test images for the neural network,
  • I need to see the accuracy and
  • I need to add "HOG feature" and using that i need to compare between the training and the test images, Please can anyone help me with that please
clc; clear all;
%%
load latest.mat; trainFcn = 'trainscg'; % Scaled conjugate gradient backpropagation.
net.performFcn = 'mse'; %newly added
hiddenLayerSize = 100; %net = patternnet(hiddenLayerSize); net=feedforwardnet([20 10]);
view (net); net.divideParam.trainRatio = 70/100; net.divideParam.valRatio = 15/100; net.divideParam.testRatio = 15/100;
net.trainParam.epochs = 100;
[net,tr] = train(net,training,test); y = net(training); e = gsubtract(test,y); performance = perform(net,test,y) tind = vec2ind(test); yind = vec2ind(y); percentErrors = sum(tind ~= yind)/numel(tind);
%net.IW{1,1}; %net.b{1}; %net.LW {1};
% View the Network view(net)
Thank You
  댓글 수: 6
Greg Heath
Greg Heath 2017년 4월 25일
The fudamental role of the validation subset is clearly explained in the documentation.
You can also search both the NEWSGROUP and ANSWERS using the search word
validation
Hope this helps.
Greg
Tousif Ahmed
Tousif Ahmed 2017년 4월 26일
https://in.mathworks.com/matlabcentral/answers/58761-nn-validation-and-data-partition
I followed the above link..
Can you please help me in my code with the validation set please

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by