KNN hyperparameters optimisation - How not to show plots ?

5 ビュー (過去 30 日間)
Pierre Lonfat
Pierre Lonfat 2018 年 4 月 25 日
コメント済み: Pierre Lonfat 2018 年 4 月 26 日
This doesn't work... Can you please help me how to write the option correctly ?
classificationKNN = fitcknn(...
predictors, ...
response, ...
'OptimizeHyperparameters','auto',...
'HyperparameterOptimizationOptions','Showplots',false);
Grazie mille !

採用された回答

Alan Weiss
Alan Weiss 2018 年 4 月 25 日
編集済み: Alan Weiss 2018 年 4 月 25 日
The 'HyperparameterOptimizationOptions' value must be a structure. Like this:
myopts.ShowPlots = false;
myresult = fitcknn(...
predictors, ...
response, ...
'OptimizeHyperparameters','auto',...
'HyperparameterOptimizationOptions',myopts);
Alan Weiss
MATLAB mathematical toolbox documentation
  1 件のコメント
Pierre Lonfat
Pierre Lonfat 2018 年 4 月 26 日
Thank you very much ! Amazing profile pic though !

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics and Visualization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by