I'm getiing this error while running the below code and the error is "Function 'subsindex' is not defined for values of class 'cell'". Could anyone tell me the way to minimize it?
1 view (last 30 days)
Show older comments
GUDIVADA ROKESH KUMAR
on 18 Jan 2019
Commented: Steven Lord
on 18 Jan 2019
options = trainingOptions('sgdm',...
'LearnRateSchedule','piecewise',...
'LearnRateDropFactor',0.2,...
'LearnRateDropPeriod',5,...
'MaxEpochs',4,...
'MiniBatchSize',8,...
'ValidationData',{imgdtsTrain,imgdtsValidation},...
'ValidationFrequency',10,...
'Verbose',false,...
'Plots','training-progress')
2 Comments
Accepted Answer
Steven Lord
on 18 Jan 2019
You've defined a variable named trainingOptions. That line of code is being interpreted as an attempt to index into that variable rather than an attempt to call the trainingOptions function. Rename or remove the variable then run that code again.
2 Comments
Steven Lord
on 18 Jan 2019
Show us the full error message (everything displayed in red text.)
Are you certain it is this call to trainingOptions that's throwing the error?
Did you rename or remove the variable from the workspace but not modify the code that precedes this line (which recreates that variable when you run it again?)
More Answers (0)
See Also
Categories
Find more on Image Data Workflows 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!