error in using predict function

15 ビュー (過去 30 日間)
apurwa choudhari
apurwa choudhari 2020 年 4 月 16 日
回答済み: Srivardhan Gadila 2020 年 4 月 19 日
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 日
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.

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by