"NumBins" error when using fitcsvm, setting at least one hyperparameter to optimize, and specifying Nu
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dammak
am 14 Nov. 2019
Kommentiert: Dammak
am 28 Nov. 2019
If I use fitcsvm with setting Nu and specifying at least one parameter to optimize, I get a non-informative error.
Here's sample code that will trigger the error:
features = [10;10;3;2];
labels = [1;1;0;0];
optHyp = hyperparameters('fitcsvm', features, labels)
optHyp(1).Optimize = true;
fitcsvm(features, labels ,'Nu',0.3, 'OptimizeHyperparameters',optHyp);
Here's the error I get:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/248304/image.png)
This happens no matter what Nu value I set between 1 and 0, with different sets of features and labels, and with different hyperparameters getting set to optimize.
Furthermore, there is no user input called NumBins or similar for the classifier or the hyperparameters.
Anyone know what's going on here?
0 Kommentare
Akzeptierte Antwort
Athul Prakash
am 26 Nov. 2019
Looks like there is a bug here. I have brought this issue to the notice of our developers. They will investigate the matter further.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!