Hi, I am converting data type of double since it has a big number to a normalize form. When i used the normalized data for SVM Classification, it turns out the accuracy is very low. So I decided to use log base 2 and then I put on SVM Classification I've got these answer
Error using quadprog (line 318) All inputs to QUADPROG must be real.
Error in svmtrain (line 528) [alpha, ~, exitflag, output] = quadprog(H,-ones(nPoints,1),[],[],...
How do I solve this?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 4월 28일

0 개 추천

Whatever values you are taking log2() of, appears to have some negative values, so the log2 is imaginary.

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

질문:

2016년 4월 27일

답변:

2016년 4월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by