필터 지우기
필터 지우기

'InitalLearnRate' is not an option for solver 'sgdm'.

조회 수: 27 (최근 30일)
sai
sai 2024년 4월 3일
댓글: sai 2024년 4월 3일
options = trainingOptions('sgdm', ...
'MiniBatchSize',128, ...
'MaxEpochs',1, ...
'InitalLearnRate',1e-4);
I can not set InitalLearnRate
Error using nnet.cnn.TrainingOptionsSGDM (line 128)
'InitalLearnRate' is not an option for solver 'sgdm'.
Error in trainingOptions (line 440)
opts = nnet.cnn.TrainingOptionsSGDM(varargin{:});
Error in test3 (line 159)
options = trainingOptions('sgdm', ...
MATLAB version is R2023b
  댓글 수: 1
KSSV
KSSV 2024년 4월 3일
options = trainingOptions('sgdm')
options =
TrainingOptionsSGDM with properties: Momentum: 0.9000 InitialLearnRate: 0.0100 MaxEpochs: 30 LearnRateSchedule: 'none' LearnRateDropFactor: 0.1000 LearnRateDropPeriod: 10 MiniBatchSize: 128 Shuffle: 'once' CheckpointFrequency: 1 CheckpointFrequencyUnit: 'epoch' SequenceLength: 'longest' PreprocessingEnvironment: 'serial' L2Regularization: 1.0000e-04 GradientThresholdMethod: 'l2norm' GradientThreshold: Inf Verbose: 1 VerboseFrequency: 50 ValidationData: [] ValidationFrequency: 50 ValidationPatience: Inf ObjectiveMetricName: 'loss' CheckpointPath: '' ExecutionEnvironment: 'auto' OutputFcn: [] Metrics: [] Plots: 'none' SequencePaddingValue: 0 SequencePaddingDirection: 'right' InputDataFormats: "auto" TargetDataFormats: "auto" ResetInputNormalization: 1 BatchNormalizationStatistics: 'auto' OutputNetwork: 'auto' Acceleration: "auto"
sgdm supports InitalLearnRate.

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

채택된 답변

VBBV
VBBV 2024년 4월 3일
      options = trainingOptions('sgdm', ...
        'MiniBatchSize',128, ...
        'MaxEpochs',1, ...
        'InitialLearnRate',1e-4);

There is a type error in the function

  댓글 수: 2
VBBV
VBBV 2024년 4월 3일
편집: VBBV 2024년 4월 3일

You have mistyped the spelling in the function. Check the spelling as InitalLearnRate there is a missing 'i'

sai
sai 2024년 4월 3일
Thank you, I solved the problem

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by