Problemm with saveCompactmodel and fitPosterior

Hi! I'm trying to use saveCompactModel to save an SVM model that is equipped to predict posterior probabilities but I get this error : Error using classreg.learning.classif.CompactClassificationSVM/toStruct (line 234) Score transformations including transformations to posterior probabilities are not supported for code generation. Error in saveCompactModel (line 17) compactStruct = toStruct(compactObj); %#ok<NASGU>
knowing that it seems to be possible to do in Matlab documentation ( see attached picture). Can anyone help me ? thanks in advance!

Respuestas (1)

Gokhan Atinc
Gokhan Atinc el 2 de Oct. de 2017

0 votos

Hi,
It seems like you are using a previous version of MATLAB and not the latest version, R2017b. Code generation support for models equipped to predict posterior probabilities is introduced in R2017b, thus you should be able to generate code for such a SVM model in R2017b. The documentation you are referring to is also for R2017b.
Regards,
Gokhan Atinc

1 comentario

sakri oum
sakri oum el 3 de Oct. de 2017
Thanks Gokhan for you're answer ! I'm wotking indeed with R2017a version, I will try with R2017b :)

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Oct. de 2017

Comentada:

el 3 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by