필터 지우기
필터 지우기

"NumBins" error when using fitcsvm, setting at least one hyperparameter to optimize, and specifying Nu

조회 수: 1 (최근 30일)
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:
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.
Also, the documentation doesn't show any dependence relationship between Nu and other parameters.
Anyone know what's going on here?

채택된 답변

Athul Prakash
Athul Prakash 2019년 11월 26일
Looks like there is a bug here. I have brought this issue to the notice of our developers. They will investigate the matter further.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by