Some Syntax Error
Show older comments
function [ann] = createnn(S,T)
x=0; source = S; targets = T;
[S2, ~] = size(targets);% Problem is here Error says
S1 = 70;
ann = newff(minmax(source),[S1 S2],{'tansig' 'tansig'},'traingda'); ann.LW{2,1} = ann.LW{2,1}*0.01; ann.b{2} = ann.b{2}*0.01; ann.performFcn = 'mse'; ann.trainParam.goal = 0.000000001; ann.trainParam.show = 20; ann.trainParam.epochs = 500000; ann.trainParam.mc = 0.95; S = source; T = targets; [ann,tr] = train(ann,S,T);
??? Error: File: createnn.m Line: 6 Column: 7 Unbalanced or unexpected parenthesis or bracket.
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!