Error in the validation of the setup function: Reason: Unrecognized field name "solver". But my code accesses hyperparameter values using "."

4 Ansichten (letzte 30 Tage)
The following error occurred during the experiment:
Error in the validation of the setup function: Reason: Unrecognized field name "solver".
Occurred in the train_param_setup function (line 399):
运行试验时出现以下错误:
验证 setup 函数时出错: 原因: 无法识别的字段名称 "solver"。 出错 train_param_setup (第 399 行)options = trainingOptions(params.solver, ...
But my code accesses hyperparameter values using ".", and the input variable for the function is also named "params."
但我的代码中用“.”访问了超参数值,函数功能的输入变量也是“params”
function [auds_train,lgraph,options]=train_param_setup(params)
%%
options = trainingOptions(params.solver, ...
'ExecutionEnvironment','gpu',...
'Shuffle','every-epoch',...
'MaxEpochs', params.epochs, ...
'MiniBatchSize', params.minibatch, ...
'InitialLearnRate', params.learnrate, ...
'Plots', 'training-progress', ...
'ValidationData', auds_validation, ...
'ValidationFrequency', 5);
In the experiment manager, the hyperparameter settings are as follows:
experiment manager里超参数设置如下:
How should I modify the code of this function next, or how should I set it in the experiment manager to make my program run correctly?
  1 Kommentar
nick
nick am 14 Nov. 2023
Hi GingerZ,
Kindly provide the entire code in order to ensure fast and accurate resolution of the issue you are facing. The input parameter 'params' is not defined in the code snippet attached by you.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by