Borrar filtros
Borrar filtros

using libsvm svmpredict output files are empty

2 visualizaciones (últimos 30 días)
Parul
Parul el 2 de Ag. de 2014
Comentada: Almost Artsy el 18 de Mzo. de 2019
i m trying to calculate accuracy of a system using SVM in libsvm, svmtrain makes a model , but svmpredict output files are empty..my program is..
trr=<408x11264 double>
tss=<204x11264 double>
users=102;
t1=4;
t2=2;
function P=svm_g3(trr,tss,users,t1,t2)
addpath(genpath('E:\libsvm-3.18\matlab'))
ltr=[];
for i=1:users
for j=1:t1
ltr=[ltr;i];
end
end
lts=[];
for i=1:users
for j=1:t2
lts=[lts;i];
end
end
mod=svmtrain(ltr,trr,'-t 0 -b 1 d 3');
[a1,a2]=svmpredict(lts,tss,mod);
P=a2(1);
  2 comentarios
Astha Ameta
Astha Ameta el 23 de En. de 2017
I am also facing the same issue, getting output file as empty [ ]
If anyone has any experience to this, please advise.
Almost Artsy
Almost Artsy el 18 de Mzo. de 2019
Have you got any solution for this problem ? It would be very helpful for me. Thanks a lot!!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by