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

3 ビュー (過去 30 日間)
GingerZ
GingerZ 2023 年 10 月 13 日
コメント済み: nick 2023 年 11 月 14 日
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 件のコメント
nick
nick 2023 年 11 月 14 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by