필터 지우기
필터 지우기

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?

조회 수: 2 (최근 30일)
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
per isakson
per isakson 2019년 1월 18일
What are the values of the variables, imgdtsTrain and imgdtsValidation ?
GUDIVADA ROKESH  KUMAR
GUDIVADA ROKESH KUMAR 2019년 1월 18일
[imgdtsTrain,imgdtsValidation] = splitEachLabel(imgdts,...
trainingNumFiles,'randomize') % 'imgdts' is my image data source

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

채택된 답변

Steven Lord
Steven Lord 2019년 1월 18일
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
Steven Lord
Steven Lord 2019년 1월 18일
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?)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by