What
MATLAB: Piony yo pionyf fd
homeworkImage Processing Toolboximage segmentation
Related Solutions
> Hi, After a lengthy research, I have finally have better Understanding about ID and FD. I have then put some code together to find the optimal ID and FD and then using these ID and FD to find optimal hidden node for my NARXNet using simplenarx dataset. While I am convince that it is correct but I am not very Confident if this is the correct way of doing things so I would really appreciate any comments/correction if any.
> Some additional question are:
1) Should I use data division such as 60/20/20 in the double for loop?
You have used TRAINBR for which Nval = 0 and performFcn = msereg HOWEVER,you have imposed performFcn = mse and DIVIDETRAIN for which Ntst = 0 . VERY CONFUSING!
2) I used intersect command to find the subset of lags, is this correct way of doing it?
NO. GEH1 'WHAT IS THE FOLLOWING COMMAND FOR?'
if true % code end
GEH2 = 'USE ONLY TRAINING DATA TO DETERMINE DELAYS' GEH3 = 'REMAINING POST STRICTLY VALID ONLY FOR I = O = 1 ' ' MODIFICATIONS NEEDED FOR MULTIVARIABLE DATA' GEH4 = 'CANNOT USE FD = 0 WILL GET ERROR'
> Using Fixed ID and FD to Find Optimal Number of Hidden Node
subset_ID_FD = intersect(sigflag95, sigilag95)
GEH5 = '0 3 4 5 10'
Opti_ID_FD = max(subset_ID_FD);
GEH6 = 'Opti_ID_FD = 10 NOT NECESSARILY OPTIMAL!'
Ntrn = N-2*round(0.15*N) % default 0.7/0.15/0.15 trn/val/tst ratios
GEH7 = 'ABOVE NOT VALID FOR TRAINBR 0.85/0/0.15'
%ID = 1:2 %default for Prediction ID = 1:Opti_ID_FD; % 0:2 % Regression (default)
GEH8 = 'ZERO DELAY IS NOT A MATLAB DEFAULT'
Hub = floor((Ntrneq-O)/(NFD*O+O+1)) % 5
GEH9 = 'Hub = (Ntrneq-O)/(NID*I+NFD*O+1)= 3.29' Hmax = Hub; % 2 is sufficient to get R2=0.999
dH =1;Hmin = 1;Ntrials = 10;%
trainFcn = 'trainbr'%rng('default')j=0for h = Hmin:dH:Hmax j=j+1 if h==0 neto = narxnet(ID,FD,[],'open',trainFcn); Nw = (NID*I+NFD*O+1)*h+(h+1)*O; GEH10 = 'Nw = (NID+1)*O'
neto.divideFcn = 'dividetrain'; % No data division
GEH11 = 'NEED NONTRAINING DATA FOR UNBIASED PREDICTION !!'
neto.performFcn = 'mse';
GEH12 ' TRAINBR USES MSEREG WITH NO VAL SET' [Xo Xoi Aoi To ] = preparets(neto,X,{},T); to = cell2mat(To); MSE00o = var(to,1) MSE00oa = var(to,0) MSEgoal = 0.005*max(Ndof,0)*MSE00oa/Ntrneq GEH13 = 'ONLY USE TRAINING DATA TO COMPUTE TRAINING PARAMETERS' GEH14 = SUGGEST LOOKING AT TRAINING RECORD tro.
Hope this helps.
*Thank you for formally accepting my answer*
Greg
Best Answer