Bayesian Optimization <undefined> and NaN Results

Sorry, if it's a silly question. I am using Bayesian Optimization to optimize classifier hyperparameters but sometimes I having "<undefined>" and "NaN" values for some parameters. What do they mean? Dataset is not suitable for this classifier? Should I use classifier's default parameters? Thanks for the help.

 채택된 답변

Don Mathis
Don Mathis 2018년 6월 26일
편집: Don Mathis 2018년 6월 26일

1 개 추천

I would need to see your example to be sure, but a typical case is when some parameter is not used when some other parameter has a certain value. For example, the PolynomialOrder parameter of an SVM is only used when the KernelFunction parameter is 'polynomial'. So a NaN or "<undefined>" value in a parameter vector means that you should not use that parameter.

댓글 수: 1

MB
MB 2018년 6월 26일
편집: MB 2018년 6월 27일
Thank you very much.
X = DataSet(:,(1:end-1));
Y = DataSet(:,end);
Disp_Opts = struct('Optimizer','bayesopt','ShowPlots',false,...
'Verbose',1,'AcquisitionFunctionName','expected-improvement-plus');
Mdl_Eva = fitcnb(X,Y,'OptimizeHyperparameters','all',...
'HyperparameterOptimizationOptions',Disp_Opts);

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

추가 답변 (0개)

카테고리

태그

질문:

MB
2018년 6월 26일

편집:

MB
2018년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by