MATLAB Answers

Bayesian Optimization <undefined> and NaN Results

2 views (last 30 days)
MByk on 26 Jun 2018
Edited: MByk on 27 Jun 2018
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.


Sign in to comment.

Accepted Answer

Don Mathis
Don Mathis on 26 Jun 2018
Edited: Don Mathis on 26 Jun 2018
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 Comment

MByk on 26 Jun 2018
Thank you very much.
X = DataSet(:,(1:end-1));
Y = DataSet(:,end);
Disp_Opts = struct('Optimizer','bayesopt','ShowPlots',false,...
Mdl_Eva = fitcnb(X,Y,'OptimizeHyperparameters','all',...

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by