Getting problem in exporting model from Matlab Classification App
Mostrar comentarios más antiguos
I made a model of Logistic Regression which has 4 inputs and 2 outputs '0' and '1'. I am having trouble in exporting the model to predict new data. my input is
T={67.753 67.395 67.122 67.938}
yfit = trainedModel.predictFcn(T)
and Output
exporting_model
T =
1×4 cell array
[67.7530] [67.3950] [67.1220] [67.9380]
Function 'subsindex' is not defined for values of class 'cell'.
Error in mlearnapp.internal.model.DatasetSpecification>@(t)t(:,predictorNames) (line 163)
extractPredictorsFromTableFcn = @(t) t(:,predictorNames);
Error in mlearnapp.internal.model.DatasetSpecification>@(x)extractPredictorsFromTableFcn(splitMatricesInTableFcn(x))
(line 164)
predictorExtractionFcn = @(x) extractPredictorsFromTableFcn(splitMatricesInTableFcn(x));
Error in mlearnapp.internal.model.DatasetSpecification>@(x)exportableModel.predictFcn(predictorExtractionFcn(x)) (line
167)
newExportableModel.predictFcn = @(x) exportableModel.predictFcn(predictorExtractionFcn(x));
Error in exporting_model (line 2)
yfit = trainedModel.predictFcn(T)
Please help me with it
Respuestas (2)
Walter Roberson
el 1 de Jun. de 2017
T = [67.753 67.395 67.122 67.938]
1 comentario
Prachi Suryawanshi
el 2 de Jun. de 2017
naishi feng
el 6 de Jun. de 2017
0 votos
have u solved ur problem?i meet the same problem too,can u help me?thank u!!!!
3 comentarios
Prachi Suryawanshi
el 6 de Jun. de 2017
Aziz Al-Abdali
el 1 de Mayo de 2018
Sorry but what did mean by mentioning the name of the variable on the top row? can you elaborate that please? Thanks in advance
jiahui cai
el 12 de Jun. de 2020
Thank you very much!!
Categorías
Más información sobre Classification Learner App en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!