KNN hyperparameters optimisation - How not to show plots ?
1 次查看(过去 30 天)
显示 更早的评论
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 !
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Signal Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!