error in using predict function

21 visualizaciones (últimos 30 días)
apurwa choudhari
apurwa choudhari el 16 de Abr. de 2020
Respondida: Srivardhan Gadila el 19 de Abr. de 2020
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

Respuestas (1)

Srivardhan Gadila
Srivardhan Gadila el 19 de Abr. de 2020
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.

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by