Error in the validation of the setup function: Reason: Unrecognized field name "solver". But my code accesses hyperparameter values using "."
Mostrar comentarios más antiguos
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 comentario
nick
el 14 de Nov. de 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.
Respuestas (0)
Categorías
Más información sobre Manage Experiments en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!