Bayesian Optimization <undefined> and NaN Results

5 ビュー (過去 30 日間)
MByk
MByk 2018 年 6 月 26 日
編集済み: MByk 2018 年 6 月 27 日
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 日
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 件のコメント
MByk
MByk 2018 年 6 月 26 日
編集済み: MByk 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 件)

カテゴリ

Help Center および File ExchangeModel Building and Assessment についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by