predeictlabels = predict(classifier,testfeatures,'columns');
error in using this line in code
error is as
Error using internal.stats.parseArgs (line 42)
Wrong number of arguments.
Error in classreg.learning.internal.orientX (line 6)
internal.stats.parseArgs({'observationsin'},{'rows'},varargin{:});
Error in classreg.learning.classif.CompactClassificationECOC/predict (line 323)
[X,varargin] = classreg.learning.internal.orientX(...
Error in kite (line 62)
predeictlabels = predict(classifier,testfeatures,'columns'); % prdict level

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 4월 19일

0 개 추천

The function predict takes only SVMModel & X as the input arguments. In your above code the 3rd argument 'columns' is causing the error, remove it.
predeictlabels = predict(classifier,testfeatures); % prdict level
Refer to documentation of predict for more information.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

질문:

2020년 4월 16일

답변:

2020년 4월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by