SVM TRAIN - WARNING ABOUT SINGULAR MATRIX
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello, I am using SVMTRAIN and sometimes it gives me this warning:
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 5.646367e-131.
What can I do to fix this ? is it really bad if I keep my algo this way ?
thank you
2 comentarios
Respuesta aceptada
Ilya
el 4 de Mzo. de 2013
This warning is thrown by the backslash operator \ when it solves the linear system based on the kernel matrix. You don't need to fix this. You just need to keep in mind that the solution (alphas) in this case is not unique because the matrix is singular. If you'd like to learn more, search Answers or the newsgroup for posts comparing the backslash operator and pinv. If the obtained SVM model is accurate, as measured by cross-validation or using independent test data, use it.
0 comentarios
Más respuestas (1)
Walter Roberson
el 1 de Mzo. de 2013
An rcond that low is pretty much saying that the matrix is singular for numeric purposes. Your results are likely to be quite wrong.
2 comentarios
Walter Roberson
el 1 de Mzo. de 2013
Sorry I am not familiar with the requirements for input to svmtrain()
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!