Please help me resolve this error, [OptimizeH​yperparame​ters,Hyper​parameterO​ptimizatio​nOptions,~​,Remaining​Args] = internal.s​tats.parse​Args(...

I am getting this error while running the code.
Error in classreg.learning.paramoptim.parseOptimizationArgs (line 10)
[OptimizeHyperparameters,HyperparameterOptimizationOptions,~,RemainingArgs] = internal.stats.parseArgs(...
Below attached is my code:
function [IsOptimizing, RemainingArgs] = parseOptimizationArgs(Args)
% Find the two NVPs 'OptimizeHyperparameters' and
% 'HyperparameterOptimizationOptions'. Error if
% 'HyperparameterOptimizationOptions' is there without
% 'OptimizeHyperparameters'. Return true if optimization is requested.
% Return RemainingArgs as the arglist without those two NVPs.
% Copyright 2016-2019 The MathWorks, Inc.
[OptimizeHyperparameters,HyperparameterOptimizationOptions,~,RemainingArgs] = internal.stats.parseArgs(...
{'OptimizeHyperparameters', 'HyperparameterOptimizationOptions'}, {[], []}, Args{:});
if isempty(OptimizeHyperparameters) && ~isempty(HyperparameterOptimizationOptions) && ~isPrefixEqual(HyperparameterOptimizationOptions, 'none')
bayesoptim.err('OptimOptionsPassedAlone');
end
IsOptimizing = ~isempty(OptimizeHyperparameters) && ~isPrefixEqual(OptimizeHyperparameters, 'none');
end
function tf = isPrefixEqual(thing, targetString)
tf = ~isempty(thing) && ischar(thing) && strncmpi(thing, targetString, length(thing));
end

댓글 수: 1

Please show how you are calling the overall function, and please show the complete error message.
That looks like the kind of error you could get if you had code that previously used svmtrain() and did not convert it completely to the new routine names -- especially if you had been using the third-party SVM library.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

릴리스

R2022a

태그

질문:

2022년 4월 15일

댓글:

2022년 4월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by