KNN hyperparameters optimisation - How not to show plots ?

2 vues (au cours des 30 derniers jours)
Pierre Lonfat
Pierre Lonfat le 25 Avr 2018
Commenté : Pierre Lonfat le 26 Avr 2018
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 !

Réponse acceptée

Alan Weiss
Alan Weiss le 25 Avr 2018
Modifié(e) : Alan Weiss le 25 Avr 2018
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 commentaire
Pierre Lonfat
Pierre Lonfat le 26 Avr 2018
Thank you very much ! Amazing profile pic though !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Descriptive Statistics and Visualization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by